test_cases:
  -
    input:
      bytes: [ 0x00, 0xc0, 0x20, 0xa5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "ld2w { z0.s, z1.s }, p0/z, [x0, x0, lsl #2]"

  -
    input:
      bytes: [ 0x25, 0xce, 0x30, 0xa5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "ld2w { z5.s, z6.s }, p3/z, [x17, x16, lsl #2]"

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

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

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

  -
    input:
      bytes: [ 0x00, 0xc0, 0x20, 0xa5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ld2w { z0.s, z1.s }, p0/z, [x0, x0, lsl #2]"

  -
    input:
      bytes: [ 0x25, 0xce, 0x30, 0xa5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ld2w { z5.s, z6.s }, p3/z, [x17, x16, lsl #2]"

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

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

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