test_cases:
  -
    input:
      bytes: [ 0x00, 0x04, 0x10, 0x0c ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcmp.caf.s $fcc0, $fa0, $fa1"
  -
    input:
      bytes: [ 0x00, 0x04, 0x20, 0x0c ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcmp.caf.d $fcc0, $fa0, $fa1"
  -
    input:
      bytes: [ 0x00, 0x04, 0x24, 0x0c ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcmp.cun.d $fcc0, $fa0, $fa1"
  -
    input:
      bytes: [ 0x00, 0x04, 0x22, 0x0c ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcmp.ceq.d $fcc0, $fa0, $fa1"
  -
    input:
      bytes: [ 0x00, 0x04, 0x26, 0x0c ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcmp.cueq.d $fcc0, $fa0, $fa1"
  -
    input:
      bytes: [ 0x00, 0x04, 0x21, 0x0c ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcmp.clt.d $fcc0, $fa0, $fa1"
  -
    input:
      bytes: [ 0x00, 0x04, 0x25, 0x0c ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcmp.cult.d $fcc0, $fa0, $fa1"
  -
    input:
      bytes: [ 0x00, 0x04, 0x23, 0x0c ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcmp.cle.d $fcc0, $fa0, $fa1"
  -
    input:
      bytes: [ 0x00, 0x04, 0x27, 0x0c ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcmp.cule.d $fcc0, $fa0, $fa1"
  -
    input:
      bytes: [ 0x00, 0x04, 0x28, 0x0c ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcmp.cne.d $fcc0, $fa0, $fa1"
  -
    input:
      bytes: [ 0x00, 0x04, 0x2a, 0x0c ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcmp.cor.d $fcc0, $fa0, $fa1"
  -
    input:
      bytes: [ 0x00, 0x04, 0x2c, 0x0c ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcmp.cune.d $fcc0, $fa0, $fa1"
  -
    input:
      bytes: [ 0x00, 0x84, 0x20, 0x0c ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcmp.saf.d $fcc0, $fa0, $fa1"
  -
    input:
      bytes: [ 0x00, 0x84, 0x24, 0x0c ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcmp.sun.d $fcc0, $fa0, $fa1"
  -
    input:
      bytes: [ 0x00, 0x84, 0x22, 0x0c ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcmp.seq.d $fcc0, $fa0, $fa1"
  -
    input:
      bytes: [ 0x00, 0x84, 0x26, 0x0c ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcmp.sueq.d $fcc0, $fa0, $fa1"
  -
    input:
      bytes: [ 0x00, 0x84, 0x21, 0x0c ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcmp.slt.d $fcc0, $fa0, $fa1"
  -
    input:
      bytes: [ 0x00, 0x84, 0x25, 0x0c ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcmp.sult.d $fcc0, $fa0, $fa1"
  -
    input:
      bytes: [ 0x00, 0x84, 0x23, 0x0c ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcmp.sle.d $fcc0, $fa0, $fa1"
  -
    input:
      bytes: [ 0x00, 0x84, 0x27, 0x0c ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcmp.sule.d $fcc0, $fa0, $fa1"
  -
    input:
      bytes: [ 0x00, 0x84, 0x28, 0x0c ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcmp.sne.d $fcc0, $fa0, $fa1"
  -
    input:
      bytes: [ 0x00, 0x84, 0x2a, 0x0c ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcmp.sor.d $fcc0, $fa0, $fa1"
  -
    input:
      bytes: [ 0x00, 0x84, 0x2c, 0x0c ]
      arch: "CS_ARCH_LOONGARCH"
      options: [ "CS_MODE_LOONGARCH64" ]
    expected:
      insns:
        -
          asm_text: "fcmp.sune.d $fcc0, $fa0, $fa1"
