test_cases:
  -
    input:
      bytes: [ 0x00, 0xe0, 0x00, 0xa4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "ldnt1b { z0.b }, p0/z, [x0]"

  -
    input:
      bytes: [ 0x00, 0xe0, 0x00, 0xa4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "ldnt1b { z0.b }, p0/z, [x0]"

  -
    input:
      bytes: [ 0xb7, 0xed, 0x08, 0xa4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "ldnt1b { z23.b }, p3/z, [x13, #-8, mul vl]"

  -
    input:
      bytes: [ 0x55, 0xf5, 0x07, 0xa4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "ldnt1b { z21.b }, p5/z, [x10, #7, mul vl]"

  -
    input:
      bytes: [ 0x00, 0xc0, 0x00, 0xa4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "ldnt1b { z0.b }, p0/z, [x0, x0]"

  -
    input:
      bytes: [ 0x00, 0xe0, 0x00, 0xa4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ldnt1b { z0.b }, p0/z, [x0]"

  -
    input:
      bytes: [ 0x00, 0xe0, 0x00, 0xa4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ldnt1b { z0.b }, p0/z, [x0]"

  -
    input:
      bytes: [ 0xb7, 0xed, 0x08, 0xa4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ldnt1b { z23.b }, p3/z, [x13, #-8, mul vl]"

  -
    input:
      bytes: [ 0x55, 0xf5, 0x07, 0xa4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ldnt1b { z21.b }, p5/z, [x10, #7, mul vl]"

  -
    input:
      bytes: [ 0x00, 0xc0, 0x00, 0xa4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ldnt1b { z0.b }, p0/z, [x0, x0]"
