1 // RUN
: llvm-mc
-triple
=aarch64
-show-encoding
-mattr
=+sve
< %s \
2 // RUN
: | FileCheck
%s
--check-prefixes
=CHECK-ENCODING
,CHECK-INST
3 // RUN
: not llvm-mc
-triple
=aarch64
-show-encoding
< %s
2>&1 \
4 // RUN
: | FileCheck
%s
--check-prefix
=CHECK-ERROR
5 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sve
< %s \
6 // RUN
: | llvm-objdump
-d
-mattr
=+sve
- | FileCheck
%s
--check-prefix
=CHECK-INST
7 // RUN
: llvm-mc
-triple
=aarch64
-filetype
=obj
-mattr
=+sve
< %s \
8 // RUN
: | llvm-objdump
-d
- | FileCheck
%s
--check-prefix
=CHECK-UNKNOWN
11 // CHECK-INST
: umax z0.
b, z0.
b, #0
12 // CHECK-ENCODING
: [0x00,0xc0,0x29,0x25]
13 // CHECK-ERROR
: instruction requires
: sve
14 // CHECK-UNKNOWN
: 00 c0
29 25 <unknown
>
16 umax z31.
b, z31.
b, #255
17 // CHECK-INST
: umax z31.
b, z31.
b, #255
18 // CHECK-ENCODING
: [0xff,0xdf,0x29,0x25]
19 // CHECK-ERROR
: instruction requires
: sve
20 // CHECK-UNKNOWN
: ff df
29 25 <unknown
>
23 // CHECK-INST
: umax z0.
b, z0.
b, #0
24 // CHECK-ENCODING
: [0x00,0xc0,0x29,0x25]
25 // CHECK-ERROR
: instruction requires
: sve
26 // CHECK-UNKNOWN
: 00 c0
29 25 <unknown
>
28 umax z31.
b, z31.
b, #255
29 // CHECK-INST
: umax z31.
b, z31.
b, #255
30 // CHECK-ENCODING
: [0xff,0xdf,0x29,0x25]
31 // CHECK-ERROR
: instruction requires
: sve
32 // CHECK-UNKNOWN
: ff df
29 25 <unknown
>
35 // CHECK-INST
: umax z0.
b, z0.
b, #0
36 // CHECK-ENCODING
: [0x00,0xc0,0x29,0x25]
37 // CHECK-ERROR
: instruction requires
: sve
38 // CHECK-UNKNOWN
: 00 c0
29 25 <unknown
>
40 umax z31.
b, z31.
b, #255
41 // CHECK-INST
: umax z31.
b, z31.
b, #255
42 // CHECK-ENCODING
: [0xff,0xdf,0x29,0x25]
43 // CHECK-ERROR
: instruction requires
: sve
44 // CHECK-UNKNOWN
: ff df
29 25 <unknown
>
47 // CHECK-INST
: umax z0.
b, z0.
b, #0
48 // CHECK-ENCODING
: [0x00,0xc0,0x29,0x25]
49 // CHECK-ERROR
: instruction requires
: sve
50 // CHECK-UNKNOWN
: 00 c0
29 25 <unknown
>
52 umax z31.
b, z31.
b, #255
53 // CHECK-INST
: umax z31.
b, z31.
b, #255
54 // CHECK-ENCODING
: [0xff,0xdf,0x29,0x25]
55 // CHECK-ERROR
: instruction requires
: sve
56 // CHECK-UNKNOWN
: ff df
29 25 <unknown
>
58 umax z31.
b, p7
/m
, z31.
b, z31.
b
59 // CHECK-INST
: umax z31.
b, p7
/m
, z31.
b, z31.
b
60 // CHECK-ENCODING
: [0xff,0x1f,0x09,0x04]
61 // CHECK-ERROR
: instruction requires
: sve
62 // CHECK-UNKNOWN
: ff
1f
09 04 <unknown
>
64 umax z31.h
, p7
/m
, z31.h
, z31.h
65 // CHECK-INST
: umax z31.h
, p7
/m
, z31.h
, z31.h
66 // CHECK-ENCODING
: [0xff,0x1f,0x49,0x04]
67 // CHECK-ERROR
: instruction requires
: sve
68 // CHECK-UNKNOWN
: ff
1f
49 04 <unknown
>
70 umax z31.s
, p7
/m
, z31.s
, z31.s
71 // CHECK-INST
: umax z31.s
, p7
/m
, z31.s
, z31.s
72 // CHECK-ENCODING
: [0xff,0x1f,0x89,0x04]
73 // CHECK-ERROR
: instruction requires
: sve
74 // CHECK-UNKNOWN
: ff
1f
89 04 <unknown
>
76 umax z31.d
, p7
/m
, z31.d
, z31.d
77 // CHECK-INST
: umax z31.d
, p7
/m
, z31.d
, z31.d
78 // CHECK-ENCODING
: [0xff,0x1f,0xc9,0x04]
79 // CHECK-ERROR
: instruction requires
: sve
80 // CHECK-UNKNOWN
: ff
1f c9
04 <unknown
>
83 // --------------------------------------------------------------------------//
84 // Test compatibility with MOVPRFX instruction.
86 movprfx z4.d
, p7
/z
, z6.d
87 // CHECK-INST
: movprfx z4.d
, p7
/z
, z6.d
88 // CHECK-ENCODING
: [0xc4,0x3c,0xd0,0x04]
89 // CHECK-ERROR
: instruction requires
: sve
90 // CHECK-UNKNOWN
: c4
3c d0
04 <unknown
>
92 umax z4.d
, p7
/m
, z4.d
, z31.d
93 // CHECK-INST
: umax z4.d
, p7
/m
, z4.d
, z31.d
94 // CHECK-ENCODING
: [0xe4,0x1f,0xc9,0x04]
95 // CHECK-ERROR
: instruction requires
: sve
96 // CHECK-UNKNOWN
: e4
1f c9
04 <unknown
>
99 // CHECK-INST
: movprfx z4
, z6
100 // CHECK-ENCODING
: [0xc4,0xbc,0x20,0x04]
101 // CHECK-ERROR
: instruction requires
: sve
102 // CHECK-UNKNOWN
: c4
bc 20 04 <unknown
>
104 umax z4.d
, p7
/m
, z4.d
, z31.d
105 // CHECK-INST
: umax z4.d
, p7
/m
, z4.d
, z31.d
106 // CHECK-ENCODING
: [0xe4,0x1f,0xc9,0x04]
107 // CHECK-ERROR
: instruction requires
: sve
108 // CHECK-UNKNOWN
: e4
1f c9
04 <unknown
>
111 // CHECK-INST
: movprfx z31
, z6
112 // CHECK-ENCODING
: [0xdf,0xbc,0x20,0x04]
113 // CHECK-ERROR
: instruction requires
: sve
114 // CHECK-UNKNOWN
: df
bc 20 04 <unknown
>
116 umax z31.
b, z31.
b, #255
117 // CHECK-INST
: umax z31.
b, z31.
b, #255
118 // CHECK-ENCODING
: [0xff,0xdf,0x29,0x25]
119 // CHECK-ERROR
: instruction requires
: sve
120 // CHECK-UNKNOWN
: ff df
29 25 <unknown
>