test_cases:
  -
    input:
      bytes: [ 0x20, 0x20, 0x5f, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2" ]
    expected:
      insns:
        -
          asm_text: "stnt1w { z0.s }, p0, [z1.s]"

  -
    input:
      bytes: [ 0xff, 0x3f, 0x5f, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2" ]
    expected:
      insns:
        -
          asm_text: "stnt1w { z31.s }, p7, [z31.s]"

  -
    input:
      bytes: [ 0xff, 0x3f, 0x40, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2" ]
    expected:
      insns:
        -
          asm_text: "stnt1w { z31.s }, p7, [z31.s, x0]"

  -
    input:
      bytes: [ 0x20, 0x20, 0x1f, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2" ]
    expected:
      insns:
        -
          asm_text: "stnt1w { z0.d }, p0, [z1.d]"

  -
    input:
      bytes: [ 0xff, 0x3f, 0x1f, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2" ]
    expected:
      insns:
        -
          asm_text: "stnt1w { z31.d }, p7, [z31.d]"

  -
    input:
      bytes: [ 0xff, 0x3f, 0x00, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2" ]
    expected:
      insns:
        -
          asm_text: "stnt1w { z31.d }, p7, [z31.d, x0]"

  -
    input:
      bytes: [ 0x20, 0x20, 0x5f, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2" ]
    expected:
      insns:
        -
          asm_text: "stnt1w { z0.s }, p0, [z1.s]"

  -
    input:
      bytes: [ 0xff, 0x3f, 0x5f, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2" ]
    expected:
      insns:
        -
          asm_text: "stnt1w { z31.s }, p7, [z31.s]"

  -
    input:
      bytes: [ 0xff, 0x3f, 0x40, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2" ]
    expected:
      insns:
        -
          asm_text: "stnt1w { z31.s }, p7, [z31.s, x0]"

  -
    input:
      bytes: [ 0x20, 0x20, 0x1f, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2" ]
    expected:
      insns:
        -
          asm_text: "stnt1w { z0.d }, p0, [z1.d]"

  -
    input:
      bytes: [ 0xff, 0x3f, 0x1f, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2" ]
    expected:
      insns:
        -
          asm_text: "stnt1w { z31.d }, p7, [z31.d]"

  -
    input:
      bytes: [ 0xff, 0x3f, 0x00, 0xe5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2" ]
    expected:
      insns:
        -
          asm_text: "stnt1w { z31.d }, p7, [z31.d, x0]"
