test_cases:
  -
    input:
      bytes: [ 0xfe, 0xf2, 0x8f, 0x77 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvextrins.b $xr30, $xr23, 0xfc"
  -
    input:
      bytes: [ 0xa0, 0x21, 0x8b, 0x77 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvextrins.h $xr0, $xr13, 0xc8"
  -
    input:
      bytes: [ 0xae, 0x62, 0x86, 0x77 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvextrins.w $xr14, $xr21, 0x98"
  -
    input:
      bytes: [ 0xdf, 0x1f, 0x82, 0x77 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvextrins.d $xr31, $xr30, 0x87"
