test_cases:
  -
    input:
      bytes: [ 0x00, 0x60, 0x40, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "st3b { z0.b - z2.b }, p0, [x0, x0]"

  -
    input:
      bytes: [ 0x25, 0x6e, 0x50, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "st3b { z5.b - z7.b }, p3, [x17, x16]"

  -
    input:
      bytes: [ 0x00, 0xe0, 0x50, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "st3b { z0.b - z2.b }, p0, [x0]"

  -
    input:
      bytes: [ 0xb7, 0xed, 0x58, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "st3b { z23.b - z25.b }, p3, [x13, #-24, mul vl]"

  -
    input:
      bytes: [ 0x55, 0xf5, 0x55, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "st3b { z21.b - z23.b }, p5, [x10, #15, mul vl]"

  -
    input:
      bytes: [ 0x00, 0x60, 0x40, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "st3b { z0.b - z2.b }, p0, [x0, x0]"

  -
    input:
      bytes: [ 0x25, 0x6e, 0x50, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "st3b { z5.b - z7.b }, p3, [x17, x16]"

  -
    input:
      bytes: [ 0x00, 0xe0, 0x50, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "st3b { z0.b - z2.b }, p0, [x0]"

  -
    input:
      bytes: [ 0xb7, 0xed, 0x58, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "st3b { z23.b - z25.b }, p3, [x13, #-24, mul vl]"

  -
    input:
      bytes: [ 0x55, 0xf5, 0x55, 0xe4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "st3b { z21.b - z23.b }, p5, [x10, #15, mul vl]"
