test_cases:
  -
    input:
      bytes: [ 0x00, 0x30, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "fcvtn z0.b, { z0.h, z1.h }"

  -
    input:
      bytes: [ 0xc0, 0x33, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "fcvtn z0.b, { z30.h, z31.h }"

  -
    input:
      bytes: [ 0x1f, 0x30, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "fcvtn z31.b, { z0.h, z1.h }"

  -
    input:
      bytes: [ 0xdf, 0x33, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "fcvtn z31.b, { z30.h, z31.h }"

  -
    input:
      bytes: [ 0x00, 0x34, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "fcvtnb z0.b, { z0.s, z1.s }"

  -
    input:
      bytes: [ 0xc0, 0x37, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "fcvtnb z0.b, { z30.s, z31.s }"

  -
    input:
      bytes: [ 0x1f, 0x34, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "fcvtnb z31.b, { z0.s, z1.s }"

  -
    input:
      bytes: [ 0xdf, 0x37, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "fcvtnb z31.b, { z30.s, z31.s }"

  -
    input:
      bytes: [ 0x00, 0x38, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "bfcvtn z0.b, { z0.h, z1.h }"

  -
    input:
      bytes: [ 0xc0, 0x3b, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "bfcvtn z0.b, { z30.h, z31.h }"

  -
    input:
      bytes: [ 0x1f, 0x38, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "bfcvtn z31.b, { z0.h, z1.h }"

  -
    input:
      bytes: [ 0xdf, 0x3b, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "bfcvtn z31.b, { z30.h, z31.h }"

  -
    input:
      bytes: [ 0x00, 0x3c, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "fcvtnt z0.b, { z0.s, z1.s }"

  -
    input:
      bytes: [ 0xc0, 0x3f, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "fcvtnt z0.b, { z30.s, z31.s }"

  -
    input:
      bytes: [ 0x1f, 0x3c, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "fcvtnt z31.b, { z0.s, z1.s }"

  -
    input:
      bytes: [ 0xdf, 0x3f, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "fcvtnt z31.b, { z30.s, z31.s }"

  -
    input:
      bytes: [ 0x00, 0x30, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "fcvtn z0.b, { z0.h, z1.h }"

  -
    input:
      bytes: [ 0xc0, 0x33, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "fcvtn z0.b, { z30.h, z31.h }"

  -
    input:
      bytes: [ 0x1f, 0x30, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "fcvtn z31.b, { z0.h, z1.h }"

  -
    input:
      bytes: [ 0xdf, 0x33, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "fcvtn z31.b, { z30.h, z31.h }"

  -
    input:
      bytes: [ 0x00, 0x34, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "fcvtnb z0.b, { z0.s, z1.s }"

  -
    input:
      bytes: [ 0xc0, 0x37, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "fcvtnb z0.b, { z30.s, z31.s }"

  -
    input:
      bytes: [ 0x1f, 0x34, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "fcvtnb z31.b, { z0.s, z1.s }"

  -
    input:
      bytes: [ 0xdf, 0x37, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "fcvtnb z31.b, { z30.s, z31.s }"

  -
    input:
      bytes: [ 0x00, 0x38, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "bfcvtn z0.b, { z0.h, z1.h }"

  -
    input:
      bytes: [ 0xc0, 0x3b, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "bfcvtn z0.b, { z30.h, z31.h }"

  -
    input:
      bytes: [ 0x1f, 0x38, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "bfcvtn z31.b, { z0.h, z1.h }"

  -
    input:
      bytes: [ 0xdf, 0x3b, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "bfcvtn z31.b, { z30.h, z31.h }"

  -
    input:
      bytes: [ 0x00, 0x3c, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "fcvtnt z0.b, { z0.s, z1.s }"

  -
    input:
      bytes: [ 0xc0, 0x3f, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "fcvtnt z0.b, { z30.s, z31.s }"

  -
    input:
      bytes: [ 0x1f, 0x3c, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "fcvtnt z31.b, { z0.s, z1.s }"

  -
    input:
      bytes: [ 0xdf, 0x3f, 0x0a, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+fp8" ]
    expected:
      insns:
        -
          asm_text: "fcvtnt z31.b, { z30.s, z31.s }"
