[InstCombine] Signed saturation patterns
[llvm-core.git] / test / MC / AArch64 / SVE / nor-diagnostics.s
blob74c606447425db271ef55866e2f8d04bd36459b2
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 nor p0.h, p0/z, p0.h, p1.h
7 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register.
8 // CHECK-NEXT: nor p0.h, p0/z, p0.h, p1.h
9 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
11 nor p0.s, p0/z, p0.s, p1.s
12 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register.
13 // CHECK-NEXT: nor p0.s, p0/z, p0.s, p1.s
14 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
16 nor p0.d, p0/z, p0.d, p1.d
17 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register.
18 // CHECK-NEXT: nor 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 nor p0.b, p0/m, p1.b, p2.b
25 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
26 // CHECK-NEXT: nor p0.b, p0/m, p1.b, p2.b
27 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: