test_cases:
  -
    input:
      bytes: [ 0x00, 0x48, 0x31, 0x45 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "uqcvtn z0.h, { z0.s, z1.s }"

  -
    input:
      bytes: [ 0x55, 0x49, 0x31, 0x45 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "uqcvtn z21.h, { z10.s, z11.s }"

  -
    input:
      bytes: [ 0x97, 0x49, 0x31, 0x45 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "uqcvtn z23.h, { z12.s, z13.s }"

  -
    input:
      bytes: [ 0xdf, 0x4b, 0x31, 0x45 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "uqcvtn z31.h, { z30.s, z31.s }"

  -
    input:
      bytes: [ 0x00, 0x48, 0x31, 0x45 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2p1" ]
    expected:
      insns:
        -
          asm_text: "uqcvtn z0.h, { z0.s, z1.s }"

  -
    input:
      bytes: [ 0x55, 0x49, 0x31, 0x45 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2p1" ]
    expected:
      insns:
        -
          asm_text: "uqcvtn z21.h, { z10.s, z11.s }"

  -
    input:
      bytes: [ 0x97, 0x49, 0x31, 0x45 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2p1" ]
    expected:
      insns:
        -
          asm_text: "uqcvtn z23.h, { z12.s, z13.s }"

  -
    input:
      bytes: [ 0xdf, 0x4b, 0x31, 0x45 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2p1" ]
    expected:
      insns:
        -
          asm_text: "uqcvtn z31.h, { z30.s, z31.s }"
