| 1 |
// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 2>&1 < %s | FileCheck %s |
| 2 |
|
| 3 |
// --------------------------------------------------------------------------// |
| 4 |
// Invalid vector list |
| 5 |
|
| 6 |
sqrshrun z0.b, {z0.s-z4.s}, #32 |
| 7 |
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid number of vectors |
| 8 |
// CHECK-NEXT: sqrshrun z0.b, {z0.s-z4.s}, #32 |
| 9 |
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: |
| 10 |
|
| 11 |
sqrshrun z0.h, {z1.d-z4.d}, #1 |
| 12 |
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 4 consecutive SVE vectors, where the first vector is a multiple of 4 and with matching element types |
| 13 |
// CHECK-NEXT: sqrshrun z0.h, {z1.d-z4.d}, #1 |
| 14 |
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: |
| 15 |
|
| 16 |
// --------------------------------------------------------------------------// |
| 17 |
// Invalid immediate |
| 18 |
|
| 19 |
sqrshrun z31.h, {z28.d-z31.d}, #65 |
| 20 |
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 64]. |
| 21 |
// CHECK-NEXT: sqrshrun z31.h, {z28.d-z31.d}, #65 |
| 22 |
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: |
| 23 |
|
| 24 |
// --------------------------------------------------------------------------// |
| 25 |
// Invalid Register Suffix |
| 26 |
|
| 27 |
sqrshrun z23.s, {z12.s-z15.s}, #24 |
| 28 |
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width |
| 29 |
// CHECK-NEXT: sqrshrun z23.s, {z12.s-z15.s}, #24 |
| 30 |
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: |