[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / MC / AArch64 / SVE / abs-diagnostics.s
blob5060d8bcdbaf07dfef8dbb7d26bc49b994c234d3
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve 2>&1 < %s| FileCheck %s
3 // Element size specifiers should match.
4 abs z0.h, p0/m, z0.b
5 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
6 // CHECK-NEXT: abs z0.h, p0/m, z0.b
7 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
9 // Missing predicate suffix
10 abs z29.d, p7, z29.d
11 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
12 // CHECK-NEXT: abs z29.d, p7, z29.d
13 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
15 // --------------------------------------------------------------------------//
16 // error: invalid restricted predicate register, expected p0..p7 (without element suffix)
18 abs z0.b, p8/m, z0.b
19 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix)
20 // CHECK-NEXT: abs z0.b, p8/m, z0.b
21 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
23 abs z0.h, p8/m, z0.h
24 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix)
25 // CHECK-NEXT: abs z0.h, p8/m, z0.h
26 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
28 abs z0.s, p8/m, z0.s
29 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix)
30 // CHECK-NEXT: abs z0.s, p8/m, z0.s
31 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
33 abs z0.d, p8/m, z0.d
34 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix)
35 // CHECK-NEXT: abs z0.d, p8/m, z0.d
36 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: