[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AArch64 / SVE2 / whilerw-diagnostics.s
blob5ea3b6d3a2e6aa1cfe86ce13fdecd0bb115c84e9
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 2>&1 < %s| FileCheck %s
4 // ------------------------------------------------------------------------- //
5 // Invalid scalar registers
7 whilerw p15.b, xzr, sp
8 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
9 // CHECK-NEXT: whilerw p15.b, xzr, sp
10 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
12 whilerw p15.b, xzr, w0
13 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
14 // CHECK-NEXT: whilerw p15.b, xzr, w0
15 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
17 whilerw p15.b, w0, x0
18 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
19 // CHECK-NEXT: whilerw p15.b, w0, x0
20 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
22 whilerw p15.b, w0, w0
23 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
24 // CHECK-NEXT: whilerw p15.b, w0, w0
25 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: