test_cases:
  -
    input:
      bytes: [ 0x08, 0x00, 0xa0, 0x81 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2", "+b16b16" ]
    expected:
      insns:
        -
          asm_text: "bfmopa za0.h, p0/m, p0/m, z0.h, z0.h"

  -
    input:
      bytes: [ 0x49, 0x55, 0xb5, 0x81 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2", "+b16b16" ]
    expected:
      insns:
        -
          asm_text: "bfmopa za1.h, p5/m, p2/m, z10.h, z21.h"

  -
    input:
      bytes: [ 0xa9, 0xed, 0xa8, 0x81 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2", "+b16b16" ]
    expected:
      insns:
        -
          asm_text: "bfmopa za1.h, p3/m, p7/m, z13.h, z8.h"

  -
    input:
      bytes: [ 0xe9, 0xff, 0xbf, 0x81 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2", "+b16b16" ]
    expected:
      insns:
        -
          asm_text: "bfmopa za1.h, p7/m, p7/m, z31.h, z31.h"

  -
    input:
      bytes: [ 0x29, 0x0e, 0xb0, 0x81 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2", "+b16b16" ]
    expected:
      insns:
        -
          asm_text: "bfmopa za1.h, p3/m, p0/m, z17.h, z16.h"

  -
    input:
      bytes: [ 0x29, 0x84, 0xbe, 0x81 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2", "+b16b16" ]
    expected:
      insns:
        -
          asm_text: "bfmopa za1.h, p1/m, p4/m, z1.h, z30.h"

  -
    input:
      bytes: [ 0x68, 0x56, 0xb4, 0x81 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2", "+b16b16" ]
    expected:
      insns:
        -
          asm_text: "bfmopa za0.h, p5/m, p2/m, z19.h, z20.h"

  -
    input:
      bytes: [ 0x88, 0x19, 0xa2, 0x81 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2", "+b16b16" ]
    expected:
      insns:
        -
          asm_text: "bfmopa za0.h, p6/m, p0/m, z12.h, z2.h"

  -
    input:
      bytes: [ 0x29, 0xc8, 0xba, 0x81 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2", "+b16b16" ]
    expected:
      insns:
        -
          asm_text: "bfmopa za1.h, p2/m, p6/m, z1.h, z26.h"

  -
    input:
      bytes: [ 0xc9, 0x0a, 0xbe, 0x81 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2", "+b16b16" ]
    expected:
      insns:
        -
          asm_text: "bfmopa za1.h, p2/m, p0/m, z22.h, z30.h"

  -
    input:
      bytes: [ 0x28, 0xf5, 0xa1, 0x81 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2", "+b16b16" ]
    expected:
      insns:
        -
          asm_text: "bfmopa za0.h, p5/m, p7/m, z9.h, z1.h"

  -
    input:
      bytes: [ 0x89, 0xa9, 0xab, 0x81 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2", "+b16b16" ]
    expected:
      insns:
        -
          asm_text: "bfmopa za1.h, p2/m, p5/m, z12.h, z11.h"
