Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / VE / VFMF.s
blob5f21543eeba00b0cfa632297e270852b355e1a84
1 # RUN: llvm-mc -triple=ve --show-encoding < %s \
2 # RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 # RUN: llvm-mc -triple=ve -filetype=obj < %s | llvm-objdump -d - \
4 # RUN: | FileCheck %s --check-prefixes=CHECK-INST
6 # CHECK-INST: vfmk.d.at %vm11
7 # CHECK-ENCODING: encoding: [0x00,0x00,0x0f,0x0b,0x00,0x00,0x00,0xb6]
8 vfmk.d %vm11
10 # CHECK-INST: vfmk.d.at %vm11
11 # CHECK-ENCODING: encoding: [0x00,0x00,0x0f,0x0b,0x00,0x00,0x00,0xb6]
12 vfmk.d.at %vm11
14 # CHECK-INST: vfmk.d.af %vm1, %vm15
15 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x01,0x00,0x00,0x0f,0xb6]
16 vfmk.d.af %vm1, %vm15
18 # CHECK-INST: vfmk.d.gt %vm12, %v22
19 # CHECK-ENCODING: encoding: [0x00,0x16,0x01,0x0c,0x00,0x00,0x00,0xb6]
20 vfmk.d.gt %vm12, %v22
22 # CHECK-INST: vfmk.d.lt %vm12, %vix, %vm15
23 # CHECK-ENCODING: encoding: [0x00,0xff,0x02,0x0c,0x00,0x00,0x0f,0xb6]
24 vfmk.d.lt %vm12, %vix, %vm15
26 # CHECK-INST: vfmk.d.ne %vm11, %v32
27 # CHECK-ENCODING: encoding: [0x00,0x20,0x03,0x0b,0x00,0x00,0x00,0xb6]
28 vfmk.d.ne %vm11, %v32
30 # CHECK-INST: vfmk.d.eq %vm1, %vix, %vm15
31 # CHECK-ENCODING: encoding: [0x00,0xff,0x04,0x01,0x00,0x00,0x0f,0xb6]
32 vfmk.d.eq %vm1, %vix, %vm15
34 # CHECK-INST: vfmk.d.ge %vm12, %v22
35 # CHECK-ENCODING: encoding: [0x00,0x16,0x05,0x0c,0x00,0x00,0x00,0xb6]
36 vfmk.d.ge %vm12, %v22
38 # CHECK-INST: vfmk.d.le %vm12, %vix, %vm15
39 # CHECK-ENCODING: encoding: [0x00,0xff,0x06,0x0c,0x00,0x00,0x0f,0xb6]
40 vfmk.d.le %vm12, %vix, %vm15
42 # CHECK-INST: vfmk.d.num %vm11, %v45
43 # CHECK-ENCODING: encoding: [0x00,0x2d,0x07,0x0b,0x00,0x00,0x00,0xb6]
44 vfmk.d.num %vm11, %v45
46 # CHECK-INST: vfmk.d.nan %vm1, %v50, %vm14
47 # CHECK-ENCODING: encoding: [0x00,0x32,0x08,0x01,0x00,0x00,0x0e,0xb6]
48 vfmk.d.nan %vm1, %v50, %vm14
50 # CHECK-INST: vfmk.d.gtnan %vm12, %v22
51 # CHECK-ENCODING: encoding: [0x00,0x16,0x09,0x0c,0x00,0x00,0x00,0xb6]
52 vfmk.d.gtnan %vm12, %v22
54 # CHECK-INST: vfmk.d.ltnan %vm12, %vix, %vm15
55 # CHECK-ENCODING: encoding: [0x00,0xff,0x0a,0x0c,0x00,0x00,0x0f,0xb6]
56 vfmk.d.ltnan %vm12, %vix, %vm15
58 # CHECK-INST: vfmk.d.nenan %vm11, %v32
59 # CHECK-ENCODING: encoding: [0x00,0x20,0x0b,0x0b,0x00,0x00,0x00,0xb6]
60 vfmk.d.nenan %vm11, %v32
62 # CHECK-INST: vfmk.d.eqnan %vm1, %vix, %vm15
63 # CHECK-ENCODING: encoding: [0x00,0xff,0x0c,0x01,0x00,0x00,0x0f,0xb6]
64 vfmk.d.eqnan %vm1, %vix, %vm15
66 # CHECK-INST: vfmk.d.genan %vm12, %v22
67 # CHECK-ENCODING: encoding: [0x00,0x16,0x0d,0x0c,0x00,0x00,0x00,0xb6]
68 vfmk.d.genan %vm12, %v22
70 # CHECK-INST: vfmk.d.lenan %vm12, %vix, %vm15
71 # CHECK-ENCODING: encoding: [0x00,0xff,0x0e,0x0c,0x00,0x00,0x0f,0xb6]
72 vfmk.d.lenan %vm12, %vix, %vm15
74 # CHECK-INST: pvfmk.s.up.at %vm11
75 # CHECK-ENCODING: encoding: [0x00,0x00,0x0f,0x0b,0x00,0x00,0x80,0xb6]
76 vfmk.s %vm11
78 # CHECK-INST: pvfmk.s.up.at %vm11
79 # CHECK-ENCODING: encoding: [0x00,0x00,0x0f,0x0b,0x00,0x00,0x80,0xb6]
80 vfmk.s.at %vm11
82 # CHECK-INST: pvfmk.s.up.af %vm1, %vm15
83 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x01,0x00,0x00,0x8f,0xb6]
84 vfmk.s.af %vm1, %vm15
86 # CHECK-INST: pvfmk.s.up.gt %vm12, %v22
87 # CHECK-ENCODING: encoding: [0x00,0x16,0x01,0x0c,0x00,0x00,0x80,0xb6]
88 vfmk.s.gt %vm12, %v22
90 # CHECK-INST: pvfmk.s.up.lt %vm12, %vix, %vm15
91 # CHECK-ENCODING: encoding: [0x00,0xff,0x02,0x0c,0x00,0x00,0x8f,0xb6]
92 vfmk.s.lt %vm12, %vix, %vm15
94 # CHECK-INST: pvfmk.s.up.ne %vm11, %v32
95 # CHECK-ENCODING: encoding: [0x00,0x20,0x03,0x0b,0x00,0x00,0x80,0xb6]
96 vfmk.s.ne %vm11, %v32
98 # CHECK-INST: pvfmk.s.up.eq %vm1, %vix, %vm15
99 # CHECK-ENCODING: encoding: [0x00,0xff,0x04,0x01,0x00,0x00,0x8f,0xb6]
100 vfmk.s.eq %vm1, %vix, %vm15
102 # CHECK-INST: pvfmk.s.up.ge %vm12, %v22
103 # CHECK-ENCODING: encoding: [0x00,0x16,0x05,0x0c,0x00,0x00,0x80,0xb6]
104 vfmk.s.ge %vm12, %v22
106 # CHECK-INST: pvfmk.s.up.le %vm12, %vix, %vm15
107 # CHECK-ENCODING: encoding: [0x00,0xff,0x06,0x0c,0x00,0x00,0x8f,0xb6]
108 vfmk.s.le %vm12, %vix, %vm15
110 # CHECK-INST: pvfmk.s.up.num %vm11, %v45
111 # CHECK-ENCODING: encoding: [0x00,0x2d,0x07,0x0b,0x00,0x00,0x80,0xb6]
112 vfmk.s.num %vm11, %v45
114 # CHECK-INST: pvfmk.s.up.nan %vm1, %v50, %vm14
115 # CHECK-ENCODING: encoding: [0x00,0x32,0x08,0x01,0x00,0x00,0x8e,0xb6]
116 vfmk.s.nan %vm1, %v50, %vm14
118 # CHECK-INST: pvfmk.s.up.gtnan %vm12, %v22
119 # CHECK-ENCODING: encoding: [0x00,0x16,0x09,0x0c,0x00,0x00,0x80,0xb6]
120 vfmk.s.gtnan %vm12, %v22
122 # CHECK-INST: pvfmk.s.up.ltnan %vm12, %vix, %vm15
123 # CHECK-ENCODING: encoding: [0x00,0xff,0x0a,0x0c,0x00,0x00,0x8f,0xb6]
124 vfmk.s.ltnan %vm12, %vix, %vm15
126 # CHECK-INST: pvfmk.s.up.nenan %vm11, %v32
127 # CHECK-ENCODING: encoding: [0x00,0x20,0x0b,0x0b,0x00,0x00,0x80,0xb6]
128 vfmk.s.nenan %vm11, %v32
130 # CHECK-INST: pvfmk.s.up.eqnan %vm1, %vix, %vm15
131 # CHECK-ENCODING: encoding: [0x00,0xff,0x0c,0x01,0x00,0x00,0x8f,0xb6]
132 vfmk.s.eqnan %vm1, %vix, %vm15
134 # CHECK-INST: pvfmk.s.up.genan %vm12, %v22
135 # CHECK-ENCODING: encoding: [0x00,0x16,0x0d,0x0c,0x00,0x00,0x80,0xb6]
136 vfmk.s.genan %vm12, %v22
138 # CHECK-INST: pvfmk.s.up.lenan %vm12, %vix, %vm15
139 # CHECK-ENCODING: encoding: [0x00,0xff,0x0e,0x0c,0x00,0x00,0x8f,0xb6]
140 vfmk.s.lenan %vm12, %vix, %vm15
142 # CHECK-INST: pvfmk.s.up.at %vm11
143 # CHECK-ENCODING: encoding: [0x00,0x00,0x0f,0x0b,0x00,0x00,0x80,0xb6]
144 pvfmk.s.up %vm11
146 # CHECK-INST: pvfmk.s.up.at %vm11
147 # CHECK-ENCODING: encoding: [0x00,0x00,0x0f,0x0b,0x00,0x00,0x80,0xb6]
148 pvfmk.s.up.at %vm11
150 # CHECK-INST: pvfmk.s.up.af %vm1, %vm15
151 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x01,0x00,0x00,0x8f,0xb6]
152 pvfmk.s.up.af %vm1, %vm15
154 # CHECK-INST: pvfmk.s.up.gt %vm12, %v22
155 # CHECK-ENCODING: encoding: [0x00,0x16,0x01,0x0c,0x00,0x00,0x80,0xb6]
156 pvfmk.s.up.gt %vm12, %v22
158 # CHECK-INST: pvfmk.s.up.lt %vm12, %vix, %vm15
159 # CHECK-ENCODING: encoding: [0x00,0xff,0x02,0x0c,0x00,0x00,0x8f,0xb6]
160 pvfmk.s.up.lt %vm12, %vix, %vm15
162 # CHECK-INST: pvfmk.s.up.ne %vm11, %v32
163 # CHECK-ENCODING: encoding: [0x00,0x20,0x03,0x0b,0x00,0x00,0x80,0xb6]
164 pvfmk.s.up.ne %vm11, %v32
166 # CHECK-INST: pvfmk.s.up.eq %vm1, %vix, %vm15
167 # CHECK-ENCODING: encoding: [0x00,0xff,0x04,0x01,0x00,0x00,0x8f,0xb6]
168 pvfmk.s.up.eq %vm1, %vix, %vm15
170 # CHECK-INST: pvfmk.s.up.ge %vm12, %v22
171 # CHECK-ENCODING: encoding: [0x00,0x16,0x05,0x0c,0x00,0x00,0x80,0xb6]
172 pvfmk.s.up.ge %vm12, %v22
174 # CHECK-INST: pvfmk.s.up.le %vm12, %vix, %vm15
175 # CHECK-ENCODING: encoding: [0x00,0xff,0x06,0x0c,0x00,0x00,0x8f,0xb6]
176 pvfmk.s.up.le %vm12, %vix, %vm15
178 # CHECK-INST: pvfmk.s.up.num %vm11, %v45
179 # CHECK-ENCODING: encoding: [0x00,0x2d,0x07,0x0b,0x00,0x00,0x80,0xb6]
180 pvfmk.s.up.num %vm11, %v45
182 # CHECK-INST: pvfmk.s.up.nan %vm1, %v50, %vm14
183 # CHECK-ENCODING: encoding: [0x00,0x32,0x08,0x01,0x00,0x00,0x8e,0xb6]
184 pvfmk.s.up.nan %vm1, %v50, %vm14
186 # CHECK-INST: pvfmk.s.up.gtnan %vm12, %v22
187 # CHECK-ENCODING: encoding: [0x00,0x16,0x09,0x0c,0x00,0x00,0x80,0xb6]
188 pvfmk.s.up.gtnan %vm12, %v22
190 # CHECK-INST: pvfmk.s.up.ltnan %vm12, %vix, %vm15
191 # CHECK-ENCODING: encoding: [0x00,0xff,0x0a,0x0c,0x00,0x00,0x8f,0xb6]
192 pvfmk.s.up.ltnan %vm12, %vix, %vm15
194 # CHECK-INST: pvfmk.s.up.nenan %vm11, %v32
195 # CHECK-ENCODING: encoding: [0x00,0x20,0x0b,0x0b,0x00,0x00,0x80,0xb6]
196 pvfmk.s.up.nenan %vm11, %v32
198 # CHECK-INST: pvfmk.s.up.eqnan %vm1, %vix, %vm15
199 # CHECK-ENCODING: encoding: [0x00,0xff,0x0c,0x01,0x00,0x00,0x8f,0xb6]
200 pvfmk.s.up.eqnan %vm1, %vix, %vm15
202 # CHECK-INST: pvfmk.s.up.genan %vm12, %v22
203 # CHECK-ENCODING: encoding: [0x00,0x16,0x0d,0x0c,0x00,0x00,0x80,0xb6]
204 pvfmk.s.up.genan %vm12, %v22
206 # CHECK-INST: pvfmk.s.up.lenan %vm12, %vix, %vm15
207 # CHECK-ENCODING: encoding: [0x00,0xff,0x0e,0x0c,0x00,0x00,0x8f,0xb6]
208 pvfmk.s.up.lenan %vm12, %vix, %vm15
210 # CHECK-INST: pvfmk.s.lo.at %vm11
211 # CHECK-ENCODING: encoding: [0x00,0x00,0x0f,0x0b,0x00,0x00,0x40,0xb6]
212 pvfmk.s.lo %vm11
214 # CHECK-INST: pvfmk.s.lo.at %vm11
215 # CHECK-ENCODING: encoding: [0x00,0x00,0x0f,0x0b,0x00,0x00,0x40,0xb6]
216 pvfmk.s.lo.at %vm11
218 # CHECK-INST: pvfmk.s.lo.af %vm1, %vm15
219 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x01,0x00,0x00,0x4f,0xb6]
220 pvfmk.s.lo.af %vm1, %vm15
222 # CHECK-INST: pvfmk.s.lo.gt %vm12, %v22
223 # CHECK-ENCODING: encoding: [0x00,0x16,0x01,0x0c,0x00,0x00,0x40,0xb6]
224 pvfmk.s.lo.gt %vm12, %v22
226 # CHECK-INST: pvfmk.s.lo.lt %vm12, %vix, %vm15
227 # CHECK-ENCODING: encoding: [0x00,0xff,0x02,0x0c,0x00,0x00,0x4f,0xb6]
228 pvfmk.s.lo.lt %vm12, %vix, %vm15
230 # CHECK-INST: pvfmk.s.lo.ne %vm11, %v32
231 # CHECK-ENCODING: encoding: [0x00,0x20,0x03,0x0b,0x00,0x00,0x40,0xb6]
232 pvfmk.s.lo.ne %vm11, %v32
234 # CHECK-INST: pvfmk.s.lo.eq %vm1, %vix, %vm15
235 # CHECK-ENCODING: encoding: [0x00,0xff,0x04,0x01,0x00,0x00,0x4f,0xb6]
236 pvfmk.s.lo.eq %vm1, %vix, %vm15
238 # CHECK-INST: pvfmk.s.lo.ge %vm12, %v22
239 # CHECK-ENCODING: encoding: [0x00,0x16,0x05,0x0c,0x00,0x00,0x40,0xb6]
240 pvfmk.s.lo.ge %vm12, %v22
242 # CHECK-INST: pvfmk.s.lo.le %vm12, %vix, %vm15
243 # CHECK-ENCODING: encoding: [0x00,0xff,0x06,0x0c,0x00,0x00,0x4f,0xb6]
244 pvfmk.s.lo.le %vm12, %vix, %vm15
246 # CHECK-INST: pvfmk.s.lo.num %vm11, %v45
247 # CHECK-ENCODING: encoding: [0x00,0x2d,0x07,0x0b,0x00,0x00,0x40,0xb6]
248 pvfmk.s.lo.num %vm11, %v45
250 # CHECK-INST: pvfmk.s.lo.nan %vm1, %v50, %vm14
251 # CHECK-ENCODING: encoding: [0x00,0x32,0x08,0x01,0x00,0x00,0x4e,0xb6]
252 pvfmk.s.lo.nan %vm1, %v50, %vm14
254 # CHECK-INST: pvfmk.s.lo.gtnan %vm12, %v22
255 # CHECK-ENCODING: encoding: [0x00,0x16,0x09,0x0c,0x00,0x00,0x40,0xb6]
256 pvfmk.s.lo.gtnan %vm12, %v22
258 # CHECK-INST: pvfmk.s.lo.ltnan %vm12, %vix, %vm15
259 # CHECK-ENCODING: encoding: [0x00,0xff,0x0a,0x0c,0x00,0x00,0x4f,0xb6]
260 pvfmk.s.lo.ltnan %vm12, %vix, %vm15
262 # CHECK-INST: pvfmk.s.lo.nenan %vm11, %v32
263 # CHECK-ENCODING: encoding: [0x00,0x20,0x0b,0x0b,0x00,0x00,0x40,0xb6]
264 pvfmk.s.lo.nenan %vm11, %v32
266 # CHECK-INST: pvfmk.s.lo.eqnan %vm1, %vix, %vm15
267 # CHECK-ENCODING: encoding: [0x00,0xff,0x0c,0x01,0x00,0x00,0x4f,0xb6]
268 pvfmk.s.lo.eqnan %vm1, %vix, %vm15
270 # CHECK-INST: pvfmk.s.lo.genan %vm12, %v22
271 # CHECK-ENCODING: encoding: [0x00,0x16,0x0d,0x0c,0x00,0x00,0x40,0xb6]
272 pvfmk.s.lo.genan %vm12, %v22
274 # CHECK-INST: pvfmk.s.lo.lenan %vm12, %vix, %vm15
275 # CHECK-ENCODING: encoding: [0x00,0xff,0x0e,0x0c,0x00,0x00,0x4f,0xb6]
276 pvfmk.s.lo.lenan %vm12, %vix, %vm15