test_cases:
  -
    input:
      bytes: [ 0x20, 0x80, 0x4f, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famin z0.h, p0/m, z0.h, z1.h"

  -
    input:
      bytes: [ 0xf7, 0xbf, 0x20, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "movprfx z23, z31"

  -
    input:
      bytes: [ 0xb7, 0x8d, 0x4f, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famin z23.h, p3/m, z23.h, z13.h"

  -
    input:
      bytes: [ 0xdf, 0x9f, 0x4f, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famin z31.h, p7/m, z31.h, z30.h"

  -
    input:
      bytes: [ 0x20, 0x80, 0x8f, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famin z0.s, p0/m, z0.s, z1.s"

  -
    input:
      bytes: [ 0xf7, 0xbf, 0x20, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "movprfx z23, z31"

  -
    input:
      bytes: [ 0xb7, 0x8d, 0x8f, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famin z23.s, p3/m, z23.s, z13.s"

  -
    input:
      bytes: [ 0xdf, 0x9f, 0x8f, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famin z31.s, p7/m, z31.s, z30.s"

  -
    input:
      bytes: [ 0x20, 0x80, 0xcf, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famin z0.d, p0/m, z0.d, z1.d"

  -
    input:
      bytes: [ 0xf7, 0xbf, 0x20, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "movprfx z23, z31"

  -
    input:
      bytes: [ 0xb7, 0x8d, 0xcf, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famin z23.d, p3/m, z23.d, z13.d"

  -
    input:
      bytes: [ 0xdf, 0x9f, 0xcf, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famin z31.d, p7/m, z31.d, z30.d"

  -
    input:
      bytes: [ 0x20, 0x80, 0x4e, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famax z0.h, p0/m, z0.h, z1.h"

  -
    input:
      bytes: [ 0xf7, 0xbf, 0x20, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "movprfx z23, z31"

  -
    input:
      bytes: [ 0xb7, 0x8d, 0x4e, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famax z23.h, p3/m, z23.h, z13.h"

  -
    input:
      bytes: [ 0xdf, 0x9f, 0x4e, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famax z31.h, p7/m, z31.h, z30.h"

  -
    input:
      bytes: [ 0x20, 0x80, 0x8e, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famax z0.s, p0/m, z0.s, z1.s"

  -
    input:
      bytes: [ 0xf7, 0xbf, 0x20, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "movprfx z23, z31"

  -
    input:
      bytes: [ 0xb7, 0x8d, 0x8e, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famax z23.s, p3/m, z23.s, z13.s"

  -
    input:
      bytes: [ 0xdf, 0x9f, 0x8e, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famax z31.s, p7/m, z31.s, z30.s"

  -
    input:
      bytes: [ 0x20, 0x80, 0xce, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famax z0.d, p0/m, z0.d, z1.d"

  -
    input:
      bytes: [ 0xf7, 0xbf, 0x20, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "movprfx z23, z31"

  -
    input:
      bytes: [ 0xb7, 0x8d, 0xce, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famax z23.d, p3/m, z23.d, z13.d"

  -
    input:
      bytes: [ 0xdf, 0x9f, 0xce, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sve2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famax z31.d, p7/m, z31.d, z30.d"

  -
    input:
      bytes: [ 0x20, 0x80, 0x4f, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famin z0.h, p0/m, z0.h, z1.h"

  -
    input:
      bytes: [ 0xf7, 0xbf, 0x20, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "movprfx z23, z31"

  -
    input:
      bytes: [ 0xb7, 0x8d, 0x4f, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famin z23.h, p3/m, z23.h, z13.h"

  -
    input:
      bytes: [ 0xdf, 0x9f, 0x4f, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famin z31.h, p7/m, z31.h, z30.h"

  -
    input:
      bytes: [ 0x20, 0x80, 0x8f, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famin z0.s, p0/m, z0.s, z1.s"

  -
    input:
      bytes: [ 0xf7, 0xbf, 0x20, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "movprfx z23, z31"

  -
    input:
      bytes: [ 0xb7, 0x8d, 0x8f, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famin z23.s, p3/m, z23.s, z13.s"

  -
    input:
      bytes: [ 0xdf, 0x9f, 0x8f, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famin z31.s, p7/m, z31.s, z30.s"

  -
    input:
      bytes: [ 0x20, 0x80, 0xcf, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famin z0.d, p0/m, z0.d, z1.d"

  -
    input:
      bytes: [ 0xf7, 0xbf, 0x20, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "movprfx z23, z31"

  -
    input:
      bytes: [ 0xb7, 0x8d, 0xcf, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famin z23.d, p3/m, z23.d, z13.d"

  -
    input:
      bytes: [ 0xdf, 0x9f, 0xcf, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famin z31.d, p7/m, z31.d, z30.d"

  -
    input:
      bytes: [ 0x20, 0x80, 0x4e, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famax z0.h, p0/m, z0.h, z1.h"

  -
    input:
      bytes: [ 0xf7, 0xbf, 0x20, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "movprfx z23, z31"

  -
    input:
      bytes: [ 0xb7, 0x8d, 0x4e, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famax z23.h, p3/m, z23.h, z13.h"

  -
    input:
      bytes: [ 0xdf, 0x9f, 0x4e, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famax z31.h, p7/m, z31.h, z30.h"

  -
    input:
      bytes: [ 0x20, 0x80, 0x8e, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famax z0.s, p0/m, z0.s, z1.s"

  -
    input:
      bytes: [ 0xf7, 0xbf, 0x20, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "movprfx z23, z31"

  -
    input:
      bytes: [ 0xb7, 0x8d, 0x8e, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famax z23.s, p3/m, z23.s, z13.s"

  -
    input:
      bytes: [ 0xdf, 0x9f, 0x8e, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famax z31.s, p7/m, z31.s, z30.s"

  -
    input:
      bytes: [ 0x20, 0x80, 0xce, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famax z0.d, p0/m, z0.d, z1.d"

  -
    input:
      bytes: [ 0xf7, 0xbf, 0x20, 0x04 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "movprfx z23, z31"

  -
    input:
      bytes: [ 0xb7, 0x8d, 0xce, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famax z23.d, p3/m, z23.d, z13.d"

  -
    input:
      bytes: [ 0xdf, 0x9f, 0xce, 0x65 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64", "sme2", "+faminmax" ]
    expected:
      insns:
        -
          asm_text: "famax z31.d, p7/m, z31.d, z30.d"
