test_cases:
  -
    input:
      bytes: [ 0x45, 0x35, 0x35, 0x84 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "prfh pldl3strm, p5, [x10, z21.s, uxtw #1]"

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

  -
    input:
      bytes: [ 0x45, 0x35, 0x35, 0xc4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "prfh pldl3strm, p5, [x10, z21.d, uxtw #1]"

  -
    input:
      bytes: [ 0x45, 0x35, 0x75, 0xc4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "prfh pldl3strm, p5, [x10, z21.d, sxtw #1]"

  -
    input:
      bytes: [ 0x00, 0xa0, 0x60, 0xc4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "prfh pldl1keep, p0, [x0, z0.d, lsl #1]"

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

  -
    input:
      bytes: [ 0xef, 0xff, 0x9f, 0x84 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "prfh #15, p7, [z31.s, #62]"

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

  -
    input:
      bytes: [ 0xef, 0xff, 0x9f, 0xc4 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "prfh #15, p7, [z31.d, #62]"
