test_cases:
  -
    input:
      bytes: [ 0xc6, 0x74, 0x78, 0x38 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ldgt.b $a2, $a2, $s6"
  -
    input:
      bytes: [ 0xe5, 0x87, 0x78, 0x38 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ldgt.h $a1, $s8, $ra"
  -
    input:
      bytes: [ 0x4f, 0x23, 0x79, 0x38 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ldgt.w $t3, $s3, $a4"
  -
    input:
      bytes: [ 0x37, 0xff, 0x79, 0x38 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ldgt.d $s0, $s2, $s8"
  -
    input:
      bytes: [ 0x89, 0x3d, 0x7a, 0x38 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ldle.b $a5, $t0, $t3"
  -
    input:
      bytes: [ 0x6b, 0xdd, 0x7a, 0x38 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ldle.h $a7, $a7, $s0"
  -
    input:
      bytes: [ 0x58, 0x08, 0x7b, 0x38 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ldle.w $s1, $tp, $tp"
  -
    input:
      bytes: [ 0xf4, 0xc1, 0x7b, 0x38 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ldle.d $t8, $t3, $t4"
  -
    input:
      bytes: [ 0x7b, 0x52, 0x7c, 0x38 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "stgt.b $s4, $t7, $t8"
  -
    input:
      bytes: [ 0x90, 0x98, 0x7c, 0x38 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "stgt.h $t4, $a0, $a2"
  -
    input:
      bytes: [ 0x9f, 0x3b, 0x7d, 0x38 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "stgt.w $s8, $s5, $t2"
  -
    input:
      bytes: [ 0xbe, 0xe2, 0x7d, 0x38 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "stgt.d $s7, $r21, $s1"
  -
    input:
      bytes: [ 0x8a, 0x40, 0x7e, 0x38 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "stle.b $a6, $a0, $t4"
  -
    input:
      bytes: [ 0x31, 0xd6, 0x7e, 0x38 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "stle.h $t5, $t5, $r21"
  -
    input:
      bytes: [ 0x97, 0x77, 0x7f, 0x38 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "stle.w $s0, $s5, $s6"
  -
    input:
      bytes: [ 0x19, 0xf7, 0x7f, 0x38 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "stle.d $s2, $s1, $s6"
