test_cases:
  -
    input:
      bytes: [ 0x00, 0x40, 0x20, 0x84 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "prfw pldl1keep, p0, [x0, z0.s, uxtw #2]"

  -
    input:
      bytes: [ 0x45, 0x55, 0x75, 0x84 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "prfw pldl3strm, p5, [x10, z21.s, sxtw #2]"

  -
    input:
      bytes: [ 0xa7, 0x4d, 0x28, 0xc4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "prfw #7, p3, [x13, z8.d, uxtw #2]"

  -
    input:
      bytes: [ 0x00, 0x40, 0x60, 0xc4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "prfw pldl1keep, p0, [x0, z0.d, sxtw #2]"

  -
    input:
      bytes: [ 0x45, 0xd5, 0x75, 0xc4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "prfw pldl3strm, p5, [x10, z21.d, lsl #2]"

  -
    input:
      bytes: [ 0xef, 0xff, 0x00, 0x85 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "prfw #15, p7, [z31.s]"

  -
    input:
      bytes: [ 0xef, 0xff, 0x1f, 0x85 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "prfw #15, p7, [z31.s, #124]"

  -
    input:
      bytes: [ 0xef, 0xff, 0x00, 0xc5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "prfw #15, p7, [z31.d]"

  -
    input:
      bytes: [ 0xef, 0xff, 0x1f, 0xc5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "prfw #15, p7, [z31.d, #124]"
