test_cases:
  -
    input:
      bytes: [ 0x25, 0x46, 0x1e, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "frint.s $fa5, $ft9"
  -
    input:
      bytes: [ 0x6c, 0x1a, 0x19, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcvt.s.d $ft4, $ft11"
  -
    input:
      bytes: [ 0xca, 0x24, 0x19, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcvt.d.s $ft2, $fa6"
  -
    input:
      bytes: [ 0xa6, 0x18, 0x1d, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ffint.s.l $fa6, $fa5"
  -
    input:
      bytes: [ 0x58, 0x22, 0x1d, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ffint.d.w $fs0, $ft10"
  -
    input:
      bytes: [ 0x57, 0x2b, 0x1d, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ffint.d.l $ft15, $fs2"
  -
    input:
      bytes: [ 0xc3, 0x09, 0x1b, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ftint.w.d $fa3, $ft6"
  -
    input:
      bytes: [ 0x1f, 0x27, 0x1b, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ftint.l.s $fs7, $fs0"
  -
    input:
      bytes: [ 0x10, 0x2b, 0x1b, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ftint.l.d $ft8, $fs0"
  -
    input:
      bytes: [ 0x07, 0x09, 0x1a, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ftintrm.w.d $fa7, $ft0"
  -
    input:
      bytes: [ 0x58, 0x25, 0x1a, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ftintrm.l.s $fs0, $ft2"
  -
    input:
      bytes: [ 0x29, 0x29, 0x1a, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ftintrm.l.d $ft1, $ft1"
  -
    input:
      bytes: [ 0x6c, 0x48, 0x1a, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ftintrp.w.d $ft4, $fa3"
  -
    input:
      bytes: [ 0x00, 0x66, 0x1a, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ftintrp.l.s $fa0, $ft8"
  -
    input:
      bytes: [ 0xa4, 0x6b, 0x1a, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ftintrp.l.d $fa4, $fs5"
  -
    input:
      bytes: [ 0x19, 0x8b, 0x1a, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ftintrz.w.d $fs1, $fs0"
  -
    input:
      bytes: [ 0xb7, 0xa4, 0x1a, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ftintrz.l.s $ft15, $fa5"
  -
    input:
      bytes: [ 0x43, 0xa9, 0x1a, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ftintrz.l.d $fa3, $ft2"
  -
    input:
      bytes: [ 0x9f, 0xc9, 0x1a, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ftintrne.w.d $fs7, $ft4"
  -
    input:
      bytes: [ 0x76, 0xe7, 0x1a, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ftintrne.l.s $ft14, $fs3"
  -
    input:
      bytes: [ 0xdc, 0xe8, 0x1a, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ftintrne.l.d $fs4, $fa6"
  -
    input:
      bytes: [ 0x5d, 0x48, 0x1e, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "frint.d $fs5, $fa2"
