[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / MC / AArch64 / SVE / orrs-diagnostics.s
blob5d8196e306f29b1ded1fe143358837040005658c
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve 2>&1 < %s| FileCheck %s
3 // --------------------------------------------------------------------------//
4 // Predicate register must have .b suffix
6 orrs p0.h, p0/z, p0.h, p1.h
7 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register.
8 // CHECK-NEXT: orrs p0.h, p0/z, p0.h, p1.h
9 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
11 orrs p0.s, p0/z, p0.s, p1.s
12 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register.
13 // CHECK-NEXT: orrs p0.s, p0/z, p0.s, p1.s
14 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
16 orrs p0.d, p0/z, p0.d, p1.d
17 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register.
18 // CHECK-NEXT: orrs p0.d, p0/z, p0.d, p1.d
19 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
21 // --------------------------------------------------------------------------//
22 // Operation only has zeroing predicate behaviour (p0/z).
24 orrs p0.b, p0/m, p1.b, p2.b
25 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
26 // CHECK-NEXT: orrs p0.b, p0/m, p1.b, p2.b
27 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: