[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / MC / AArch64 / SVE / ptrues-diagnostics.s
blobdfbf9794caeedb7293b914fdcd5c13c0ec81cc5c
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve 2>&1 < %s| FileCheck %s
3 // --------------------------------------------------------------------------//
4 // Invalid pattern name
5 // --------------------------------------------------------------------------//
7 ptrues p0.s, vl512
8 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
9 // CHECK-NEXT: ptrues p0.s, vl512
10 // CHECK-NOT: [[@LINE-3]]:{{[0-9]+}}:
12 ptrues p0.s, vl9
13 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
14 // CHECK-NEXT: ptrues p0.s, vl9
15 // CHECK-NOT: [[@LINE-3]]:{{[0-9]+}}:
17 // --------------------------------------------------------------------------//
18 // Invalid immediate range
19 // --------------------------------------------------------------------------//
21 ptrues p0.s, #-1
22 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
23 // CHECK-NEXT: ptrues p0.s, #-1
24 // CHECK-NOT: [[@LINE-3]]:{{[0-9]+}}:
26 ptrues p0.s, #32
27 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
28 // CHECK-NEXT: ptrues p0.s, #32
29 // CHECK-NOT: [[@LINE-3]]:{{[0-9]+}}: