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