xref: /llvm-project/llvm/test/MC/AArch64/armv8.5a-xaflag-error.s (revision 31af178f4a2a001ce064202db9072f3f6a8b4497)
1// RUN: not llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.5a < %s 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR
2
3// Check that XAFlag/AXFlag don't accept operands like MSR does
4xaflag S0_0_C4_C0_1, xzr
5axflag S0_0_C4_C0_1, xzr
6
7// CHECK-ERROR: invalid operand for instruction
8// CHECK-ERROR-NEXT: xaflag S0_0_C4_C0_1, xzr
9// CHECK-ERROR: invalid operand for instruction
10// CHECK-ERROR-NEXT: axflag S0_0_C4_C0_1, xzr
11