1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/test/MC/AArch64/armv8.5a-xaflag-error.s
Oliver Stannard 1790db7411 [AArch64][v8.5A] Add PSTATE manipulation instructions XAFlag and AXFlag
These new instructions manipluate the NZCV bits, to convert between the
regular Arm floating-point comare format and an alternative format.

Patch by Pablo Barrio!

Differential revision: https://reviews.llvm.org/D52473

llvm-svn: 343187
2018-09-27 09:11:27 +00:00

11 lines
436 B
ArmAsm

// RUN: not llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.5a < %s 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR
// Check that XAFlag/AXFlag don't accept operands like MSR does
xaflag S0_0_C4_C0_1, xzr
axflag S0_0_C4_C0_1, xzr
// CHECK-ERROR: invalid operand for instruction
// CHECK-ERROR-NEXT: xaflag S0_0_C4_C0_1, xzr
// CHECK-ERROR: invalid operand for instruction
// CHECK-ERROR-NEXT: axflag S0_0_C4_C0_1, xzr