test_cases:
  -
    input:
      bytes: [ 0x20, 0xe0, 0x20, 0xc1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "fcvtn z0.h, { z0.s, z1.s }"

  -
    input:
      bytes: [ 0x75, 0xe1, 0x20, 0xc1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "fcvtn z21.h, { z10.s, z11.s }"

  -
    input:
      bytes: [ 0xb7, 0xe1, 0x20, 0xc1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "fcvtn z23.h, { z12.s, z13.s }"

  -
    input:
      bytes: [ 0xff, 0xe3, 0x20, 0xc1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "fcvtn z31.h, { z30.s, z31.s }"
