test_cases:
  -
    input:
      bytes: [ 0xbe, 0x10, 0x1d, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ffint.s.w $fs6, $fa5"
  -
    input:
      bytes: [ 0xb5, 0x05, 0x1b, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ftint.w.s $ft13, $ft5"
  -
    input:
      bytes: [ 0x10, 0x06, 0x1a, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ftintrm.w.s $ft8, $ft8"
  -
    input:
      bytes: [ 0xee, 0x47, 0x1a, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ftintrp.w.s $ft6, $fs7"
  -
    input:
      bytes: [ 0xa4, 0x87, 0x1a, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ftintrz.w.s $fa4, $fs5"
  -
    input:
      bytes: [ 0x24, 0xc6, 0x1a, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "ftintrne.w.s $fa4, $ft9"
  -
    input:
      bytes: [ 0x25, 0x46, 0x1e, 0x01 ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "frint.s $fa5, $ft9"
