test_cases:
  -
    input:
      bytes: [ 0x20, 0xa0, 0x8a, 0x64 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve", "+bf16" ]
    expected:
      insns:
        -
          asm_text: "bfcvtnt z0.h, p0/m, z1.s"

  -
    input:
      bytes: [ 0x40, 0x20, 0x91, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve", "+bf16" ]
    expected:
      insns:
        -
          asm_text: "movprfx z0.s, p0/m, z2.s"

  -
    input:
      bytes: [ 0x20, 0xa0, 0x8a, 0x64 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve", "+bf16" ]
    expected:
      insns:
        -
          asm_text: "bfcvtnt z0.h, p0/m, z1.s"

  -
    input:
      bytes: [ 0x40, 0xbc, 0x20, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve", "+bf16" ]
    expected:
      insns:
        -
          asm_text: "movprfx z0, z2"

  -
    input:
      bytes: [ 0x20, 0xa0, 0x8a, 0x64 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve", "+bf16" ]
    expected:
      insns:
        -
          asm_text: "bfcvtnt z0.h, p0/m, z1.s"

  -
    input:
      bytes: [ 0x20, 0xa0, 0x8a, 0x64 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme", "+bf16" ]
    expected:
      insns:
        -
          asm_text: "bfcvtnt z0.h, p0/m, z1.s"

  -
    input:
      bytes: [ 0x40, 0x20, 0x91, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme", "+bf16" ]
    expected:
      insns:
        -
          asm_text: "movprfx z0.s, p0/m, z2.s"

  -
    input:
      bytes: [ 0x20, 0xa0, 0x8a, 0x64 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme", "+bf16" ]
    expected:
      insns:
        -
          asm_text: "bfcvtnt z0.h, p0/m, z1.s"

  -
    input:
      bytes: [ 0x40, 0xbc, 0x20, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme", "+bf16" ]
    expected:
      insns:
        -
          asm_text: "movprfx z0, z2"

  -
    input:
      bytes: [ 0x20, 0xa0, 0x8a, 0x64 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme", "+bf16" ]
    expected:
      insns:
        -
          asm_text: "bfcvtnt z0.h, p0/m, z1.s"
