[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / AArch64 / armv9.6a-fcvt.s
blobb14ec93563f5c4d6258f2968c0ac4e952b3bc57d
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+fprcvt < %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=+fprcvt < %s \
6 // RUN: | llvm-objdump -d --mattr=+fprcvt - | FileCheck %s --check-prefix=CHECK-INST
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+fprcvt < %s \
8 // RUN: | llvm-objdump -d --no-print-imm-hex --mattr=-fprcvt - | FileCheck %s --check-prefix=CHECK-UNKNOWN
9 // Disassemble encoding and check the re-encoding (-show-encoding) matches.
10 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+fprcvt < %s \
11 // RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \
12 // RUN: | llvm-mc -triple=aarch64 -mattr=+fprcvt -disassemble -show-encoding \
13 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
15 fcvtas s0, d1
16 // CHECK-INST: fcvtas s0, d1
17 // CHECK-ENCODING: [0x20,0x00,0x7a,0x1e]
18 // CHECK-ERROR: instruction requires: fprcvt
19 // CHECK-UNKNOWN: 1e7a0020 <unknown>
21 fcvtas s1, h2
22 // CHECK-INST: fcvtas s1, h2
23 // CHECK-ENCODING: [0x41,0x00,0xfa,0x1e]
24 // CHECK-ERROR: instruction requires: fprcvt
25 // CHECK-UNKNOWN: 1efa0041 <unknown>
27 fcvtas d3, h4
28 // CHECK-INST: fcvtas d3, h4
29 // CHECK-ENCODING: [0x83,0x00,0xfa,0x9e]
30 // CHECK-ERROR: instruction requires: fprcvt
31 // CHECK-UNKNOWN: 9efa0083 <unknown>
33 fcvtas d0, s5
34 // CHECK-INST: fcvtas d0, s5
35 // CHECK-ENCODING: [0xa0,0x00,0x3a,0x9e]
36 // CHECK-ERROR: instruction requires: fprcvt
37 // CHECK-UNKNOWN: 9e3a00a0 <unknown>
39 fcvtau s0, d1
40 // CHECK-INST: fcvtau s0, d1
41 // CHECK-ENCODING: [0x20,0x00,0x7b,0x1e]
42 // CHECK-ERROR: instruction requires: fprcvt
43 // CHECK-UNKNOWN: 1e7b0020 <unknown>
45 fcvtau s1, h2
46 // CHECK-INST: fcvtau s1, h2
47 // CHECK-ENCODING: [0x41,0x00,0xfb,0x1e]
48 // CHECK-ERROR: instruction requires: fprcvt
49 // CHECK-UNKNOWN: 1efb0041 <unknown>
51 fcvtau d3, h4
52 // CHECK-INST: fcvtau d3, h4
53 // CHECK-ENCODING: [0x83,0x00,0xfb,0x9e]
54 // CHECK-ERROR: instruction requires: fprcvt
55 // CHECK-UNKNOWN: 9efb0083 <unknown>
57 fcvtau d0, s5
58 // CHECK-INST: fcvtau d0, s5
59 // CHECK-ENCODING: [0xa0,0x00,0x3b,0x9e]
60 // CHECK-ERROR: instruction requires: fprcvt
61 // CHECK-UNKNOWN: 9e3b00a0 <unknown>
63 fcvtms s0, d1
64 // CHECK-INST: fcvtms s0, d1
65 // CHECK-ENCODING: [0x20,0x00,0x74,0x1e]
66 // CHECK-ERROR: instruction requires: fprcvt
67 // CHECK-UNKNOWN: 1e740020 <unknown>
69 fcvtms s1, h2
70 // CHECK-INST: fcvtms s1, h2
71 // CHECK-ENCODING: [0x41,0x00,0xf4,0x1e]
72 // CHECK-ERROR: instruction requires: fprcvt
73 // CHECK-UNKNOWN: 1ef40041 <unknown>
75 fcvtms d3, h4
76 // CHECK-INST: fcvtms d3, h4
77 // CHECK-ENCODING: [0x83,0x00,0xf4,0x9e]
78 // CHECK-ERROR: instruction requires: fprcvt
79 // CHECK-UNKNOWN: 9ef40083 <unknown>
81 fcvtms d0, s5
82 // CHECK-INST: fcvtms d0, s5
83 // CHECK-ENCODING: [0xa0,0x00,0x34,0x9e]
84 // CHECK-ERROR: instruction requires: fprcvt
85 // CHECK-UNKNOWN: 9e3400a0 <unknown>
87 fcvtmu s0, d1
88 // CHECK-INST: fcvtmu s0, d1
89 // CHECK-ENCODING: [0x20,0x00,0x75,0x1e]
90 // CHECK-ERROR: instruction requires: fprcvt
91 // CHECK-UNKNOWN: 1e750020 <unknown>
93 fcvtmu s1, h2
94 // CHECK-INST: fcvtmu s1, h2
95 // CHECK-ENCODING: [0x41,0x00,0xf5,0x1e]
96 // CHECK-ERROR: instruction requires: fprcvt
97 // CHECK-UNKNOWN: 1ef50041 <unknown>
99 fcvtmu d3, h4
100 // CHECK-INST: fcvtmu d3, h4
101 // CHECK-ENCODING: [0x83,0x00,0xf5,0x9e]
102 // CHECK-ERROR: instruction requires: fprcvt
103 // CHECK-UNKNOWN: 9ef50083 <unknown>
105 fcvtmu d0, s5
106 // CHECK-INST: fcvtmu d0, s5
107 // CHECK-ENCODING: [0xa0,0x00,0x35,0x9e]
108 // CHECK-ERROR: instruction requires: fprcvt
109 // CHECK-UNKNOWN: 9e3500a0 <unknown>
111 fcvtns s0, d1
112 // CHECK-INST: fcvtns s0, d1
113 // CHECK-ENCODING: [0x20,0x00,0x6a,0x1e]
114 // CHECK-ERROR: instruction requires: fprcvt
115 // CHECK-UNKNOWN: 1e6a0020 <unknown>
117 fcvtns s1, h2
118 // CHECK-INST: fcvtns s1, h2
119 // CHECK-ENCODING: [0x41,0x00,0xea,0x1e]
120 // CHECK-ERROR: instruction requires: fprcvt
121 // CHECK-UNKNOWN: 1eea0041 <unknown>
123 fcvtns d3, h4
124 // CHECK-INST: fcvtns d3, h4
125 // CHECK-ENCODING: [0x83,0x00,0xea,0x9e]
126 // CHECK-ERROR: instruction requires: fprcvt
127 // CHECK-UNKNOWN: 9eea0083 <unknown>
129 fcvtns d0, s5
130 // CHECK-INST: fcvtns d0, s5
131 // CHECK-ENCODING: [0xa0,0x00,0x2a,0x9e]
132 // CHECK-ERROR: instruction requires: fprcvt
133 // CHECK-UNKNOWN: 9e2a00a0 <unknown>
135 fcvtnu s0, d1
136 // CHECK-INST: fcvtnu s0, d1
137 // CHECK-ENCODING: [0x20,0x00,0x6b,0x1e]
138 // CHECK-ERROR: instruction requires: fprcvt
139 // CHECK-UNKNOWN: 1e6b0020 <unknown>
141 fcvtnu s1, h2
142 // CHECK-INST: fcvtnu s1, h2
143 // CHECK-ENCODING: [0x41,0x00,0xeb,0x1e]
144 // CHECK-ERROR: instruction requires: fprcvt
145 // CHECK-UNKNOWN: 1eeb0041 <unknown>
147 fcvtnu d3, h4
148 // CHECK-INST: fcvtnu d3, h4
149 // CHECK-ENCODING: [0x83,0x00,0xeb,0x9e]
150 // CHECK-ERROR: instruction requires: fprcvt
151 // CHECK-UNKNOWN: 9eeb0083 <unknown>
153 fcvtnu d0, s5
154 // CHECK-INST: fcvtnu d0, s5
155 // CHECK-ENCODING: [0xa0,0x00,0x2b,0x9e]
156 // CHECK-ERROR: instruction requires: fprcvt
157 // CHECK-UNKNOWN: 9e2b00a0 <unknown>
159 fcvtps s0, d1
160 // CHECK-INST: fcvtps s0, d1
161 // CHECK-ENCODING: [0x20,0x00,0x72,0x1e]
162 // CHECK-ERROR: instruction requires: fprcvt
163 // CHECK-UNKNOWN: 1e720020 <unknown>
165 fcvtps s1, h2
166 // CHECK-INST: fcvtps s1, h2
167 // CHECK-ENCODING: [0x41,0x00,0xf2,0x1e]
168 // CHECK-ERROR: instruction requires: fprcvt
169 // CHECK-UNKNOWN: 1ef20041 <unknown>
171 fcvtps d3, h4
172 // CHECK-INST: fcvtps d3, h4
173 // CHECK-ENCODING: [0x83,0x00,0xf2,0x9e]
174 // CHECK-ERROR: instruction requires: fprcvt
175 // CHECK-UNKNOWN: 9ef20083 <unknown>
177 fcvtps d0, s5
178 // CHECK-INST: fcvtps d0, s5
179 // CHECK-ENCODING: [0xa0,0x00,0x32,0x9e]
180 // CHECK-ERROR: instruction requires: fprcvt
181 // CHECK-UNKNOWN: 9e3200a0 <unknown>
183 fcvtpu s0, d1
184 // CHECK-INST: fcvtpu s0, d1
185 // CHECK-ENCODING: [0x20,0x00,0x73,0x1e]
186 // CHECK-ERROR: instruction requires: fprcvt
187 // CHECK-UNKNOWN: 1e730020 <unknown>
189 fcvtpu s1, h2
190 // CHECK-INST: fcvtpu s1, h2
191 // CHECK-ENCODING: [0x41,0x00,0xf3,0x1e]
192 // CHECK-ERROR: instruction requires: fprcvt
193 // CHECK-UNKNOWN: 1ef30041 <unknown>
195 fcvtpu d3, h4
196 // CHECK-INST: fcvtpu d3, h4
197 // CHECK-ENCODING: [0x83,0x00,0xf3,0x9e]
198 // CHECK-ERROR: instruction requires: fprcvt
199 // CHECK-UNKNOWN: 9ef30083 <unknown>
201 fcvtpu d0, s5
202 // CHECK-INST: fcvtpu d0, s5
203 // CHECK-ENCODING: [0xa0,0x00,0x33,0x9e]
204 // CHECK-ERROR: instruction requires: fprcvt
205 // CHECK-UNKNOWN: 9e3300a0 <unknown>
207 fcvtzs s0, d1
208 // CHECK-INST: fcvtzs s0, d1
209 // CHECK-ENCODING: [0x20,0x00,0x76,0x1e]
210 // CHECK-ERROR: instruction requires: fprcvt
211 // CHECK-UNKNOWN: 1e760020 <unknown>
213 fcvtzs s1, h2
214 // CHECK-INST: fcvtzs s1, h2
215 // CHECK-ENCODING: [0x41,0x00,0xf6,0x1e]
216 // CHECK-ERROR: instruction requires: fprcvt
217 // CHECK-UNKNOWN: 1ef60041 <unknown>
219 fcvtzs d3, h4
220 // CHECK-INST: fcvtzs d3, h4
221 // CHECK-ENCODING: [0x83,0x00,0xf6,0x9e]
222 // CHECK-ERROR: instruction requires: fprcvt
223 // CHECK-UNKNOWN: 9ef60083 <unknown>
225 fcvtzs d0, s5
226 // CHECK-INST: fcvtzs d0, s5
227 // CHECK-ENCODING: [0xa0,0x00,0x36,0x9e]
228 // CHECK-ERROR: instruction requires: fprcvt
229 // CHECK-UNKNOWN: 9e3600a0 <unknown>
231 fcvtzu s0, d1
232 // CHECK-INST: fcvtzu s0, d1
233 // CHECK-ENCODING: [0x20,0x00,0x77,0x1e]
234 // CHECK-ERROR: instruction requires: fprcvt
235 // CHECK-UNKNOWN: 1e770020 <unknown>
237 fcvtzu s1, h2
238 // CHECK-INST: fcvtzu s1, h2
239 // CHECK-ENCODING: [0x41,0x00,0xf7,0x1e]
240 // CHECK-ERROR: instruction requires: fprcvt
241 // CHECK-UNKNOWN: 1ef70041 <unknown>
243 fcvtzu d3, h4
244 // CHECK-INST: fcvtzu d3, h4
245 // CHECK-ENCODING: [0x83,0x00,0xf7,0x9e]
246 // CHECK-ERROR: instruction requires: fprcvt
247 // CHECK-UNKNOWN: 9ef70083 <unknown>
249 fcvtzu d0, s5
250 // CHECK-INST: fcvtzu d0, s5
251 // CHECK-ENCODING: [0xa0,0x00,0x37,0x9e]
252 // CHECK-ERROR: instruction requires: fprcvt
253 // CHECK-UNKNOWN: 9e3700a0 <unknown>