[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AArch64 / SVE / sxtb-diagnostics.s
blob0e8de5e5023677af66e521b6c6d9e1663ee9efc4
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve 2>&1 < %s| FileCheck %s
3 // Element size specifiers should match.
4 sxtb z0.d, p0/m, z0.s
5 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
6 // CHECK-NEXT: sxtb z0.d, p0/m, z0.s
7 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
9 // Missing predicate suffix
10 sxtb z29.d, p7, z29.d
11 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
12 // CHECK-NEXT: sxtb z29.d, p7, z29.d
13 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
16 // --------------------------------------------------------------------------//
17 // Unsupported element widths
19 sxtb z0.b, p0/m, z0.b
20 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
21 // CHECK-NEXT: sxtb z0.b, p0/m, z0.b
22 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
25 // --------------------------------------------------------------------------//
26 // error: invalid restricted predicate register, expected p0..p7 (without element suffix)
28 sxtb z0.h, p8/m, z0.h
29 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix)
30 // CHECK-NEXT: sxtb z0.h, p8/m, z0.h
31 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
33 sxtb z0.s, p8/m, z0.s
34 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix)
35 // CHECK-NEXT: sxtb z0.s, p8/m, z0.s
36 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
38 sxtb z0.d, p8/m, z0.d
39 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix)
40 // CHECK-NEXT: sxtb z0.d, p8/m, z0.d
41 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: