test_cases:
  -
    input:
      bytes: [ 0xd0, 0x23, 0xbf, 0x25 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "ctermne w30, wzr"

  -
    input:
      bytes: [ 0xf0, 0x23, 0xbe, 0x25 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "ctermne wzr, w30"

  -
    input:
      bytes: [ 0xd0, 0x23, 0xff, 0x25 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "ctermne x30, xzr"

  -
    input:
      bytes: [ 0xf0, 0x23, 0xfe, 0x25 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "ctermne xzr, x30"

  -
    input:
      bytes: [ 0xd0, 0x23, 0xbf, 0x25 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ctermne w30, wzr"

  -
    input:
      bytes: [ 0xf0, 0x23, 0xbe, 0x25 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ctermne wzr, w30"

  -
    input:
      bytes: [ 0xd0, 0x23, 0xff, 0x25 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ctermne x30, xzr"

  -
    input:
      bytes: [ 0xf0, 0x23, 0xfe, 0x25 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "ctermne xzr, x30"
