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

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

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

  -
    input:
      bytes: [ 0xb7, 0xed, 0xd8, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "st3d { z23.d - z25.d }, p3, [x13, #-24, mul vl]"

  -
    input:
      bytes: [ 0x55, 0xf5, 0xd5, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "st3d { z21.d - z23.d }, p5, [x10, #15, mul vl]"

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

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

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

  -
    input:
      bytes: [ 0xb7, 0xed, 0xd8, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "st3d { z23.d - z25.d }, p3, [x13, #-24, mul vl]"

  -
    input:
      bytes: [ 0x55, 0xf5, 0xd5, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "st3d { z21.d - z23.d }, p5, [x10, #15, mul vl]"
