xref: /llvm-project/llvm/test/MC/AArch64/armv8.9a-rasv2.s (revision 947d4fb37336389255950d77760ede81708c5466)
1// RUN: llvm-mc -triple aarch64 -show-encoding -mattr=+rasv2 < %s | FileCheck %s
2// RUN: llvm-mc -triple aarch64 -show-encoding -mattr=+v8.9a < %s | FileCheck %s
3// RUN: llvm-mc -triple aarch64 -show-encoding -mattr=+v9.4a < %s | FileCheck %s
4
5// RUN: not llvm-mc -triple aarch64-none-linux-gnu               < %s 2>&1 | FileCheck --check-prefix=ERROR-NO-RAS %s
6
7mrs x0, ERXGSR_EL1
8// CHECK: mrs x0, ERXGSR_EL1                  // encoding: [0x40,0x53,0x38,0xd5]
9// ERROR-NO-RAS: [[@LINE-2]]:9: error: expected readable system register
10