test_cases:
  -
    input:
      bytes: [ 0x00, 0xe0, 0xaa, 0xc1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "frintm { z0.s, z1.s }, { z0.s, z1.s }"

  -
    input:
      bytes: [ 0x54, 0xe1, 0xaa, 0xc1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "frintm { z20.s, z21.s }, { z10.s, z11.s }"

  -
    input:
      bytes: [ 0x96, 0xe1, 0xaa, 0xc1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "frintm { z22.s, z23.s }, { z12.s, z13.s }"

  -
    input:
      bytes: [ 0xde, 0xe3, 0xaa, 0xc1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "frintm { z30.s, z31.s }, { z30.s, z31.s }"

  -
    input:
      bytes: [ 0x00, 0xe0, 0xba, 0xc1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "frintm { z0.s - z3.s }, { z0.s - z3.s }"

  -
    input:
      bytes: [ 0x14, 0xe1, 0xba, 0xc1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "frintm { z20.s - z23.s }, { z8.s - z11.s }"

  -
    input:
      bytes: [ 0x94, 0xe1, 0xba, 0xc1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "frintm { z20.s - z23.s }, { z12.s - z15.s }"

  -
    input:
      bytes: [ 0x9c, 0xe3, 0xba, 0xc1 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_NO_BRANCH_OFFSET", "aarch64", "sme2" ]
    expected:
      insns:
        -
          asm_text: "frintm { z28.s - z31.s }, { z28.s - z31.s }"
