test_cases:
  -
    input:
      bytes: [ 0x68, 0x00, 0xe2, 0x74 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvmod.b $xr8, $xr3, $xr0"
  -
    input:
      bytes: [ 0x22, 0xf2, 0xe2, 0x74 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvmod.h $xr2, $xr17, $xr28"
  -
    input:
      bytes: [ 0x0e, 0x35, 0xe3, 0x74 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvmod.w $xr14, $xr8, $xr13"
  -
    input:
      bytes: [ 0x4b, 0xc9, 0xe3, 0x74 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvmod.d $xr11, $xr10, $xr18"
  -
    input:
      bytes: [ 0x30, 0x68, 0xe6, 0x74 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvmod.bu $xr16, $xr1, $xr26"
  -
    input:
      bytes: [ 0xaf, 0x81, 0xe6, 0x74 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvmod.hu $xr15, $xr13, $xr0"
  -
    input:
      bytes: [ 0x6b, 0x52, 0xe7, 0x74 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvmod.wu $xr11, $xr19, $xr20"
  -
    input:
      bytes: [ 0x6e, 0x98, 0xe7, 0x74 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "xvmod.du $xr14, $xr3, $xr6"
