test_cases:
  -
    input:
      bytes: [ 0x00, 0x60, 0xe0, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "st4h { z0.h - z3.h }, p0, [x0, x0, lsl #1]"

  -
    input:
      bytes: [ 0x25, 0x6e, 0xf0, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "st4h { z5.h - z8.h }, p3, [x17, x16, lsl #1]"

  -
    input:
      bytes: [ 0x00, 0xe0, 0xf0, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "st4h { z0.h - z3.h }, p0, [x0]"

  -
    input:
      bytes: [ 0xb7, 0xed, 0xf8, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "st4h { z23.h - z26.h }, p3, [x13, #-32, mul vl]"

  -
    input:
      bytes: [ 0x55, 0xf5, 0xf5, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "st4h { z21.h - z24.h }, p5, [x10, #20, mul vl]"

  -
    input:
      bytes: [ 0x5d, 0xf5, 0xf5, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "st4h { z29.h, z30.h, z31.h, z0.h }, p5, [x10, #20, mul vl]"

  -
    input:
      bytes: [ 0x00, 0x60, 0xe0, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "st4h { z0.h - z3.h }, p0, [x0, x0, lsl #1]"

  -
    input:
      bytes: [ 0x25, 0x6e, 0xf0, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "st4h { z5.h - z8.h }, p3, [x17, x16, lsl #1]"

  -
    input:
      bytes: [ 0x00, 0xe0, 0xf0, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "st4h { z0.h - z3.h }, p0, [x0]"

  -
    input:
      bytes: [ 0xb7, 0xed, 0xf8, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "st4h { z23.h - z26.h }, p3, [x13, #-32, mul vl]"

  -
    input:
      bytes: [ 0x55, 0xf5, 0xf5, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "st4h { z21.h - z24.h }, p5, [x10, #20, mul vl]"

  -
    input:
      bytes: [ 0x5d, 0xf5, 0xf5, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "st4h { z29.h, z30.h, z31.h, z0.h }, p5, [x10, #20, mul vl]"
