test_cases:
  -
    input:
      bytes: [ 0x00, 0x40, 0x80, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "str z0, [x0]"

  -
    input:
      bytes: [ 0x55, 0x41, 0xa0, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "str z21, [x10, #-256, mul vl]"

  -
    input:
      bytes: [ 0xff, 0x5f, 0x9f, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "str z31, [sp, #255, mul vl]"

  -
    input:
      bytes: [ 0x00, 0x00, 0x80, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "str p0, [x0]"

  -
    input:
      bytes: [ 0xef, 0x03, 0xa0, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "str p15, [sp, #-256, mul vl]"

  -
    input:
      bytes: [ 0x45, 0x1d, 0x9f, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "str p5, [x10, #255, mul vl]"

  -
    input:
      bytes: [ 0x00, 0x40, 0x80, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "str z0, [x0]"

  -
    input:
      bytes: [ 0x55, 0x41, 0xa0, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "str z21, [x10, #-256, mul vl]"

  -
    input:
      bytes: [ 0xff, 0x5f, 0x9f, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "str z31, [sp, #255, mul vl]"

  -
    input:
      bytes: [ 0x00, 0x00, 0x80, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "str p0, [x0]"

  -
    input:
      bytes: [ 0xef, 0x03, 0xa0, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "str p15, [sp, #-256, mul vl]"

  -
    input:
      bytes: [ 0x45, 0x1d, 0x9f, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "str p5, [x10, #255, mul vl]"
