test_cases:
  -
    input:
      bytes: [ 0xe0, 0x3b, 0x38, 0x05 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "rev z0.b, z31.b"

  -
    input:
      bytes: [ 0xe0, 0x3b, 0x78, 0x05 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "rev z0.h, z31.h"

  -
    input:
      bytes: [ 0xe0, 0x3b, 0xb8, 0x05 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "rev z0.s, z31.s"

  -
    input:
      bytes: [ 0xe0, 0x3b, 0xf8, 0x05 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve" ]
    expected:
      insns:
        -
          asm_text: "rev z0.d, z31.d"

  -
    input:
      bytes: [ 0xe0, 0x3b, 0x38, 0x05 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "rev z0.b, z31.b"

  -
    input:
      bytes: [ 0xe0, 0x3b, 0x78, 0x05 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "rev z0.h, z31.h"

  -
    input:
      bytes: [ 0xe0, 0x3b, 0xb8, 0x05 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "rev z0.s, z31.s"

  -
    input:
      bytes: [ 0xe0, 0x3b, 0xf8, 0x05 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "rev z0.d, z31.d"
