test_cases:
  -
    input:
      bytes: [ 0x00, 0x60, 0xa0, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "st2d { z0.d, z1.d }, p0, [x0, x0, lsl #3]"

  -
    input:
      bytes: [ 0x25, 0x6e, 0xb0, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "st2d { z5.d, z6.d }, p3, [x17, x16, lsl #3]"

  -
    input:
      bytes: [ 0x00, 0xe0, 0xb0, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "st2d { z0.d, z1.d }, p0, [x0]"

  -
    input:
      bytes: [ 0xb7, 0xed, 0xb8, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "st2d { z23.d, z24.d }, p3, [x13, #-16, mul vl]"

  -
    input:
      bytes: [ 0x55, 0xf5, 0xb5, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "st2d { z21.d, z22.d }, p5, [x10, #10, mul vl]"

  -
    input:
      bytes: [ 0x00, 0x60, 0xa0, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "st2d { z0.d, z1.d }, p0, [x0, x0, lsl #3]"

  -
    input:
      bytes: [ 0x25, 0x6e, 0xb0, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "st2d { z5.d, z6.d }, p3, [x17, x16, lsl #3]"

  -
    input:
      bytes: [ 0x00, 0xe0, 0xb0, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "st2d { z0.d, z1.d }, p0, [x0]"

  -
    input:
      bytes: [ 0xb7, 0xed, 0xb8, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "st2d { z23.d, z24.d }, p3, [x13, #-16, mul vl]"

  -
    input:
      bytes: [ 0x55, 0xf5, 0xb5, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "st2d { z21.d, z22.d }, p5, [x10, #10, mul vl]"
