test_cases:
  -
    input:
      bytes: [ 0x15, 0x50, 0x35, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "addvl x21, x21, #0"

  -
    input:
      bytes: [ 0xf7, 0x57, 0x28, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "addvl x23, x8, #-1"

  -
    input:
      bytes: [ 0xff, 0x53, 0x3f, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "addvl sp, sp, #31"

  -
    input:
      bytes: [ 0x00, 0x54, 0x20, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "addvl x0, x0, #-32"

  -
    input:
      bytes: [ 0x15, 0x50, 0x35, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "addvl x21, x21, #0"

  -
    input:
      bytes: [ 0xf7, 0x57, 0x28, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "addvl x23, x8, #-1"

  -
    input:
      bytes: [ 0xff, 0x53, 0x3f, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "addvl sp, sp, #31"

  -
    input:
      bytes: [ 0x00, 0x54, 0x20, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "addvl x0, x0, #-32"
