test_cases:
  -
    input:
      bytes: [ 0x00, 0x80, 0x2e, 0x05 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "revd z0.q, p0/m, z0.q"

  -
    input:
      bytes: [ 0x55, 0x95, 0x2e, 0x05 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "revd z21.q, p5/m, z10.q"

  -
    input:
      bytes: [ 0xb7, 0x8d, 0x2e, 0x05 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "revd z23.q, p3/m, z13.q"

  -
    input:
      bytes: [ 0xff, 0x9f, 0x2e, 0x05 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "revd z31.q, p7/m, z31.q"

  -
    input:
      bytes: [ 0x35, 0xbf, 0x20, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "movprfx z21, z25"

  -
    input:
      bytes: [ 0x55, 0x95, 0x2e, 0x05 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme" ]
    expected:
      insns:
        -
          asm_text: "revd z21.q, p5/m, z10.q"
