test_cases:
  -
    input:
      bytes: [ 0x7e, 0x12, 0x9f, 0x76 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "vext2xv.h.b $xr30, $xr19"
  -
    input:
      bytes: [ 0xbb, 0x14, 0x9f, 0x76 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "vext2xv.w.b $xr27, $xr5"
  -
    input:
      bytes: [ 0x39, 0x1b, 0x9f, 0x76 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "vext2xv.d.b $xr25, $xr25"
  -
    input:
      bytes: [ 0x94, 0x1e, 0x9f, 0x76 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "vext2xv.w.h $xr20, $xr20"
  -
    input:
      bytes: [ 0x68, 0x22, 0x9f, 0x76 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "vext2xv.d.h $xr8, $xr19"
  -
    input:
      bytes: [ 0x24, 0x27, 0x9f, 0x76 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "vext2xv.d.w $xr4, $xr25"
  -
    input:
      bytes: [ 0x99, 0x29, 0x9f, 0x76 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "vext2xv.hu.bu $xr25, $xr12"
  -
    input:
      bytes: [ 0xbf, 0x2d, 0x9f, 0x76 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "vext2xv.wu.bu $xr31, $xr13"
  -
    input:
      bytes: [ 0x2c, 0x33, 0x9f, 0x76 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "vext2xv.du.bu $xr12, $xr25"
  -
    input:
      bytes: [ 0x97, 0x35, 0x9f, 0x76 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "vext2xv.wu.hu $xr23, $xr12"
  -
    input:
      bytes: [ 0xd2, 0x38, 0x9f, 0x76 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "vext2xv.du.hu $xr18, $xr6"
  -
    input:
      bytes: [ 0xaa, 0x3e, 0x9f, 0x76 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "vext2xv.du.wu $xr10, $xr21"
