[InstCombine] Signed saturation patterns
[llvm-core.git] / test / MC / AArch64 / SVE2 / uqrshlr-diagnostics.s
blob84ecdfa4264943a4ba0751e310ae261c9e7ab146
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 2>&1 < %s| FileCheck %s
3 // --------------------------------------------------------------------------//
4 // Source and Destination Registers must match
6 uqrshlr z0.b, p0/m, z1.b, z2.b
7 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: operand must match destination register
8 // CHECK-NEXT: uqrshlr z0.b, p0/m, z1.b, z2.b
9 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
12 // --------------------------------------------------------------------------//
13 // Element sizes must match
15 uqrshlr z0.b, p0/m, z0.d, z1.d
16 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
17 // CHECK-NEXT: uqrshlr z0.b, p0/m, z0.d, z1.d
18 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
20 uqrshlr z0.b, p0/m, z0.b, z1.h
21 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
22 // CHECK-NEXT: uqrshlr z0.b, p0/m, z0.b, z1.h
23 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
26 // --------------------------------------------------------------------------//
27 // Invalid predicate
29 uqrshlr z0.b, p0/z, z0.b, z1.b
30 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
31 // CHECK-NEXT: uqrshlr z0.b, p0/z, z0.b, z1.b
32 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
34 uqrshlr z0.b, p8/m, z0.b, z1.b
35 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix)
36 // CHECK-NEXT: uqrshlr z0.b, p8/m, z0.b, z1.b
37 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: