test_cases:
  -
    input:
      bytes: [ 0x15, 0x58, 0x35, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "addsvl x21, x21, #0"

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

  -
    input:
      bytes: [ 0xff, 0x5b, 0x3f, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "addsvl sp, sp, #31"

  -
    input:
      bytes: [ 0x00, 0x5c, 0x20, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "addsvl x0, x0, #-32"
