test_cases:
  -
    input:
      bytes: [ 0xa7, 0x81, 0x02, 0x75 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvssrarn.b.h $xr7, $xr13, $xr0"
  -
    input:
      bytes: [ 0x56, 0x38, 0x03, 0x75 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvssrarn.h.w $xr22, $xr2, $xr14"
  -
    input:
      bytes: [ 0xed, 0xc0, 0x03, 0x75 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvssrarn.w.d $xr13, $xr7, $xr16"
  -
    input:
      bytes: [ 0x84, 0x89, 0x0a, 0x75 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvssrarn.bu.h $xr4, $xr12, $xr2"
  -
    input:
      bytes: [ 0x0f, 0x0f, 0x0b, 0x75 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvssrarn.hu.w $xr15, $xr24, $xr3"
  -
    input:
      bytes: [ 0x3e, 0xa1, 0x0b, 0x75 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvssrarn.wu.d $xr30, $xr9, $xr8"
