test_cases:
  -
    input:
      bytes: [ 0x18, 0x00, 0x80, 0xa1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "umops za0.s, p0/m, p0/m, z0.h, z0.h"

  -
    input:
      bytes: [ 0x59, 0x55, 0x95, 0xa1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "umops za1.s, p5/m, p2/m, z10.h, z21.h"

  -
    input:
      bytes: [ 0xbb, 0xed, 0x88, 0xa1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "umops za3.s, p3/m, p7/m, z13.h, z8.h"

  -
    input:
      bytes: [ 0xfb, 0xff, 0x9f, 0xa1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "umops za3.s, p7/m, p7/m, z31.h, z31.h"

  -
    input:
      bytes: [ 0x39, 0x0e, 0x90, 0xa1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "umops za1.s, p3/m, p0/m, z17.h, z16.h"

  -
    input:
      bytes: [ 0x39, 0x84, 0x9e, 0xa1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "umops za1.s, p1/m, p4/m, z1.h, z30.h"

  -
    input:
      bytes: [ 0x78, 0x56, 0x94, 0xa1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "umops za0.s, p5/m, p2/m, z19.h, z20.h"

  -
    input:
      bytes: [ 0x98, 0x19, 0x82, 0xa1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "umops za0.s, p6/m, p0/m, z12.h, z2.h"

  -
    input:
      bytes: [ 0x39, 0xc8, 0x9a, 0xa1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "umops za1.s, p2/m, p6/m, z1.h, z26.h"

  -
    input:
      bytes: [ 0xd9, 0x0a, 0x9e, 0xa1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "umops za1.s, p2/m, p0/m, z22.h, z30.h"

  -
    input:
      bytes: [ 0x3a, 0xf5, 0x81, 0xa1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "umops za2.s, p5/m, p7/m, z9.h, z1.h"

  -
    input:
      bytes: [ 0x9b, 0xa9, 0x8b, 0xa1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "umops za3.s, p2/m, p5/m, z12.h, z11.h"
