test_cases:
  -
    input:
      bytes: [ 0x00, 0xc0, 0x20, 0xa4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "ld2b { z0.b, z1.b }, p0/z, [x0, x0]"

  -
    input:
      bytes: [ 0x25, 0xce, 0x30, 0xa4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "ld2b { z5.b, z6.b }, p3/z, [x17, x16]"

  -
    input:
      bytes: [ 0x00, 0xe0, 0x20, 0xa4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "ld2b { z0.b, z1.b }, p0/z, [x0]"

  -
    input:
      bytes: [ 0xb7, 0xed, 0x28, 0xa4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "ld2b { z23.b, z24.b }, p3/z, [x13, #-16, mul vl]"

  -
    input:
      bytes: [ 0x55, 0xf5, 0x25, 0xa4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "ld2b { z21.b, z22.b }, p5/z, [x10, #10, mul vl]"

  -
    input:
      bytes: [ 0x00, 0xc0, 0x20, 0xa4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ld2b { z0.b, z1.b }, p0/z, [x0, x0]"

  -
    input:
      bytes: [ 0x25, 0xce, 0x30, 0xa4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ld2b { z5.b, z6.b }, p3/z, [x17, x16]"

  -
    input:
      bytes: [ 0x00, 0xe0, 0x20, 0xa4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ld2b { z0.b, z1.b }, p0/z, [x0]"

  -
    input:
      bytes: [ 0xb7, 0xed, 0x28, 0xa4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ld2b { z23.b, z24.b }, p3/z, [x13, #-16, mul vl]"

  -
    input:
      bytes: [ 0x55, 0xf5, 0x25, 0xa4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ld2b { z21.b, z22.b }, p5/z, [x10, #10, mul vl]"
