test_cases:
  -
    input:
      bytes: [ 0xb8, 0x38, 0x0c, 0x75 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvbitclr.b $xr24, $xr5, $xr14"
  -
    input:
      bytes: [ 0x3e, 0xb5, 0x0c, 0x75 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvbitclr.h $xr30, $xr9, $xr13"
  -
    input:
      bytes: [ 0x62, 0x1c, 0x0d, 0x75 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvbitclr.w $xr2, $xr3, $xr7"
  -
    input:
      bytes: [ 0xae, 0xe4, 0x0d, 0x75 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvbitclr.d $xr14, $xr5, $xr25"
  -
    input:
      bytes: [ 0x56, 0x3f, 0x10, 0x77 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvbitclri.b $xr22, $xr26, 7"
  -
    input:
      bytes: [ 0xc2, 0x75, 0x10, 0x77 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvbitclri.h $xr2, $xr14, 0xd"
  -
    input:
      bytes: [ 0x43, 0x80, 0x10, 0x77 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvbitclri.w $xr3, $xr2, 0"
  -
    input:
      bytes: [ 0x8a, 0x1d, 0x11, 0x77 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvbitclri.d $xr10, $xr12, 7"
