test_cases:
  -
    input:
      bytes: [ 0x20, 0x80, 0x1f, 0xc5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2" ]
    expected:
      insns:
        -
          asm_text: "ldnt1sw { z0.d }, p0/z, [z1.d]"

  -
    input:
      bytes: [ 0xff, 0x9f, 0x1f, 0xc5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2" ]
    expected:
      insns:
        -
          asm_text: "ldnt1sw { z31.d }, p7/z, [z31.d]"

  -
    input:
      bytes: [ 0xff, 0x9f, 0x00, 0xc5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2" ]
    expected:
      insns:
        -
          asm_text: "ldnt1sw { z31.d }, p7/z, [z31.d, x0]"

  -
    input:
      bytes: [ 0x20, 0x80, 0x1f, 0xc5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2" ]
    expected:
      insns:
        -
          asm_text: "ldnt1sw { z0.d }, p0/z, [z1.d]"

  -
    input:
      bytes: [ 0xff, 0x9f, 0x1f, 0xc5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2" ]
    expected:
      insns:
        -
          asm_text: "ldnt1sw { z31.d }, p7/z, [z31.d]"

  -
    input:
      bytes: [ 0xff, 0x9f, 0x00, 0xc5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2" ]
    expected:
      insns:
        -
          asm_text: "ldnt1sw { z31.d }, p7/z, [z31.d, x0]"
