test_cases:
  -
    input:
      bytes: [ 0x00, 0xe4, 0x40, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z0.h, z0.h, z0.h"

  -
    input:
      bytes: [ 0x55, 0xe5, 0x55, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z21.h, z10.h, z21.h"

  -
    input:
      bytes: [ 0xb7, 0xe5, 0x48, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z23.h, z13.h, z8.h"

  -
    input:
      bytes: [ 0xff, 0xe7, 0x5f, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z31.h, z31.h, z31.h"

  -
    input:
      bytes: [ 0x00, 0xe4, 0x80, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z0.s, z0.s, z0.s"

  -
    input:
      bytes: [ 0x55, 0xe5, 0x95, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z21.s, z10.s, z21.s"

  -
    input:
      bytes: [ 0xb7, 0xe5, 0x88, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z23.s, z13.s, z8.s"

  -
    input:
      bytes: [ 0xff, 0xe7, 0x9f, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z31.s, z31.s, z31.s"

  -
    input:
      bytes: [ 0x00, 0xe4, 0xc0, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z0.d, z0.d, z0.d"

  -
    input:
      bytes: [ 0x55, 0xe5, 0xd5, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z21.d, z10.d, z21.d"

  -
    input:
      bytes: [ 0xb7, 0xe5, 0xc8, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z23.d, z13.d, z8.d"

  -
    input:
      bytes: [ 0xff, 0xe7, 0xdf, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z31.d, z31.d, z31.d"

  -
    input:
      bytes: [ 0x00, 0xe4, 0x00, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z0.b, z0.b, z0.b"

  -
    input:
      bytes: [ 0x55, 0xe5, 0x15, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z21.b, z10.b, z21.b"

  -
    input:
      bytes: [ 0xb7, 0xe5, 0x08, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z23.b, z13.b, z8.b"

  -
    input:
      bytes: [ 0xff, 0xe7, 0x1f, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z31.b, z31.b, z31.b"

  -
    input:
      bytes: [ 0x00, 0xe4, 0x40, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z0.h, z0.h, z0.h"

  -
    input:
      bytes: [ 0x55, 0xe5, 0x55, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z21.h, z10.h, z21.h"

  -
    input:
      bytes: [ 0xb7, 0xe5, 0x48, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z23.h, z13.h, z8.h"

  -
    input:
      bytes: [ 0xff, 0xe7, 0x5f, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z31.h, z31.h, z31.h"

  -
    input:
      bytes: [ 0x00, 0xe4, 0x80, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z0.s, z0.s, z0.s"

  -
    input:
      bytes: [ 0x55, 0xe5, 0x95, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z21.s, z10.s, z21.s"

  -
    input:
      bytes: [ 0xb7, 0xe5, 0x88, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z23.s, z13.s, z8.s"

  -
    input:
      bytes: [ 0xff, 0xe7, 0x9f, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z31.s, z31.s, z31.s"

  -
    input:
      bytes: [ 0x00, 0xe4, 0xc0, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z0.d, z0.d, z0.d"

  -
    input:
      bytes: [ 0x55, 0xe5, 0xd5, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z21.d, z10.d, z21.d"

  -
    input:
      bytes: [ 0xb7, 0xe5, 0xc8, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z23.d, z13.d, z8.d"

  -
    input:
      bytes: [ 0xff, 0xe7, 0xdf, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z31.d, z31.d, z31.d"

  -
    input:
      bytes: [ 0x00, 0xe4, 0x00, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z0.b, z0.b, z0.b"

  -
    input:
      bytes: [ 0x55, 0xe5, 0x15, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z21.b, z10.b, z21.b"

  -
    input:
      bytes: [ 0xb7, 0xe5, 0x08, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z23.b, z13.b, z8.b"

  -
    input:
      bytes: [ 0xff, 0xe7, 0x1f, 0x44 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2p1" ]
    expected:
      insns:
        -
          asm_text: "zipq2 z31.b, z31.b, z31.b"
