test_cases:
  -
    input:
      bytes: [ 0xff, 0x3b, 0x71, 0x05 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "sunpkhi z31.h, z31.b"

  -
    input:
      bytes: [ 0xff, 0x3b, 0xb1, 0x05 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "sunpkhi z31.s, z31.h"

  -
    input:
      bytes: [ 0xff, 0x3b, 0xf1, 0x05 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "sunpkhi z31.d, z31.s"

  -
    input:
      bytes: [ 0xff, 0x3b, 0x71, 0x05 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "sunpkhi z31.h, z31.b"

  -
    input:
      bytes: [ 0xff, 0x3b, 0xb1, 0x05 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "sunpkhi z31.s, z31.h"

  -
    input:
      bytes: [ 0xff, 0x3b, 0xf1, 0x05 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "sunpkhi z31.d, z31.s"
