test_cases:
  -
    input:
      bytes: [ 0x40, 0x26, 0x1c, 0xd5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64-none-linux-gnu", "v8.4a" ]
    expected:
      insns:
        -
          asm_text: "msr VSTCR_EL2, x0"

  -
    input:
      bytes: [ 0x00, 0x26, 0x1c, 0xd5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64-none-linux-gnu", "v8.4a" ]
    expected:
      insns:
        -
          asm_text: "msr VSTTBR_EL2, x0"

  -
    input:
      bytes: [ 0x2c, 0x13, 0x1c, 0xd5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64-none-linux-gnu", "v8.4a" ]
    expected:
      insns:
        -
          asm_text: "msr SDER32_EL2, x12"

  -
    input:
      bytes: [ 0x00, 0xe4, 0x1c, 0xd5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64-none-linux-gnu", "v8.4a" ]
    expected:
      insns:
        -
          asm_text: "msr CNTHVS_TVAL_EL2, x0"

  -
    input:
      bytes: [ 0x40, 0xe4, 0x1c, 0xd5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64-none-linux-gnu", "v8.4a" ]
    expected:
      insns:
        -
          asm_text: "msr CNTHVS_CVAL_EL2, x0"

  -
    input:
      bytes: [ 0x20, 0xe4, 0x1c, 0xd5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64-none-linux-gnu", "v8.4a" ]
    expected:
      insns:
        -
          asm_text: "msr CNTHVS_CTL_EL2, x0"

  -
    input:
      bytes: [ 0x00, 0xe5, 0x1c, 0xd5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64-none-linux-gnu", "v8.4a" ]
    expected:
      insns:
        -
          asm_text: "msr CNTHPS_TVAL_EL2, x0"

  -
    input:
      bytes: [ 0x40, 0xe5, 0x1c, 0xd5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64-none-linux-gnu", "v8.4a" ]
    expected:
      insns:
        -
          asm_text: "msr CNTHPS_CVAL_EL2, x0"

  -
    input:
      bytes: [ 0x20, 0xe5, 0x1c, 0xd5 ]
      arch: "CS_ARCH_AARCH64"
      options: [ "CS_OPT_ONLY_OFFSET_BRANCH", "aarch64-none-linux-gnu", "v8.4a" ]
    expected:
      insns:
        -
          asm_text: "msr CNTHPS_CTL_EL2, x0"
