1 // RUN
: not llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sve2
2>&1 < %s| FileCheck
%s
3 ushllt z18.h
, z28.
b, #-1
4 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[0, 7]
5 // CHECK-NEXT
: ushllt z18.h
, z28.
b, #-1
6 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
9 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[0, 7]
10 // CHECK-NEXT
: ushllt z1.h
, z9.
b, #8
11 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
13 ushllt z21.s
, z2.h
, #-1
14 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[0, 15]
15 // CHECK-NEXT
: ushllt z21.s
, z2.h
, #-1
16 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
18 ushllt z14.s
, z30.h
, #16
19 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[0, 15]
20 // CHECK-NEXT
: ushllt z14.s
, z30.h
, #16
21 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
23 ushllt z6.d
, z12.s
, #-1
24 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[0, 31]
25 // CHECK-NEXT
: ushllt z6.d
, z12.s
, #-1
26 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
28 ushllt z23.d
, z19.s
, #32
29 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: immediate must
be an integer in range
[0, 31]
30 // CHECK-NEXT
: ushllt z23.d
, z19.s
, #32
31 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
34 // --------------------------------------------------------------------------//
35 // Invalid element width
38 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid element width
39 // CHECK-NEXT
: ushllt z0.
b, z0.
b, #0
40 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
43 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid element width
44 // CHECK-NEXT
: ushllt z0.h
, z0.h
, #0
45 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
48 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid element width
49 // CHECK-NEXT
: ushllt z0.s
, z0.s
, #0
50 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
53 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: invalid element width
54 // CHECK-NEXT
: ushllt z0.d
, z0.d
, #0
55 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
58 // --------------------------------------------------------------------------//
59 // Negative tests for instructions that are incompatible with movprfx
62 ushllt z31.d
, z31.s
, #31
63 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: instruction is unpredictable when following
a movprfx
, suggest replacing movprfx with mov
64 // CHECK-NEXT
: ushllt z31.d
, z31.s
, #31
65 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}:
67 movprfx z31.d
, p0
/m
, z6.d
68 ushllt z31.d
, z31.s
, #31
69 // CHECK
: [[@LINE-
1]]:{{[0-9]+}}: error
: instruction is unpredictable when following
a movprfx
, suggest replacing movprfx with mov
70 // CHECK-NEXT
: ushllt z31.d
, z31.s
, #31
71 // CHECK-
NOT: [[@LINE-
1]]:{{[0-9]+}}: