llvm.org GIT mirror llvm / 502ad00
[mips][disassembler] Merged disassembler tests into the corresponding ISA/ASE subdirectories. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249384 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Sanders 4 years ago
16 changed file(s) with 769 addition(s) and 2469 deletion(s). Raw diff Collapse all Expand all
+0
-366
test/MC/Disassembler/Mips/micromips.txt less more
None # RUN: llvm-mc --disassemble %s -triple=mips-unknown-linux -mattr=micromips \
1 # RUN: | FileCheck %s
2
3 0x00 0xe6 0x49 0x10 # CHECK: add $9, $6, $7
4
5 0x11 0x26 0x45 0x67 # CHECK: addi $9, $6, 17767
6
7 0x31 0x26 0xc5 0x67 # CHECK: addiu $9, $6, -15001
8
9 0x11 0x26 0x45 0x67 # CHECK: addi $9, $6, 17767
10
11 0x31 0x26 0xc5 0x67 # CHECK: addiu $9, $6, -15001
12
13 0x4f 0xf9 # CHECK: addiusp -16
14
15 0x4f 0xff # CHECK: addiusp -1028
16
17 0x4f 0xfd # CHECK: addiusp -1032
18
19 0x4c 0x01 # CHECK: addiusp 1024
20
21 0x4c 0x03 # CHECK: addiusp 1028
22
23 0x00 0xe6 0x49 0x50 # CHECK: addu $9, $6, $7
24
25 0x00 0xe6 0x49 0x90 # CHECK: sub $9, $6, $7
26
27 0x00 0xa3 0x21 0xd0 # CHECK: subu $4, $3, $5
28
29 0x00 0xe0 0x31 0x90 # CHECK: sub $6, $zero, $7
30
31 0x00 0xe0 0x31 0xd0 # CHECK: subu $6, $zero, $7
32
33 0x00 0x08 0x39 0x50 # CHECK: addu $7, $8, $zero
34
35 0x00 0xa3 0x1b 0x50 # CHECK: slt $3, $3, $5
36
37 0x90 0x63 0x00 0x67 # CHECK: slti $3, $3, 103
38
39 0x90 0x63 0x00 0x67 # CHECK: slti $3, $3, 103
40
41 0xb0 0x63 0x00 0x67 # CHECK: sltiu $3, $3, 103
42
43 0x00 0xa3 0x1b 0x90 # CHECK: sltu $3, $3, $5
44
45 0x41 0xa9 0x45 0x67 # CHECK: lui $9, 17767
46
47 0x00 0xe6 0x4a 0x50 # CHECK: and $9, $6, $7
48
49 0xd1 0x26 0x45 0x67 # CHECK: andi $9, $6, 17767
50
51 0xd1 0x26 0x45 0x67 # CHECK: andi $9, $6, 17767
52
53 0x2c 0x29 # CHECK: andi16 $16, $2, 31
54
55 0x00 0xa4 0x1a 0x90 # CHECK: or $3, $4, $5
56
57 0x51 0x26 0x45 0x67 # CHECK: ori $9, $6, 17767
58
59 0x00 0xa3 0x1b 0x10 # CHECK: xor $3, $3, $5
60
61 0x71 0x26 0x45 0x67 # CHECK: xori $9, $6, 17767
62
63 0x71 0x26 0x45 0x67 # CHECK: xori $9, $6, 17767
64
65 0x00 0xe6 0x4a 0xd0 # CHECK: nor $9, $6, $7
66
67 0x00 0x08 0x3a 0xd0 # CHECK: not $7, $8
68
69 0x00 0xe6 0x4a 0x10 # CHECK: mul $9, $6, $7
70
71 0x00 0xe9 0x8b 0x3c # CHECK: mult $9, $7
72
73 0x00 0xe9 0x9b 0x3c # CHECK: multu $9, $7
74
75 0x00 0xe9 0xab 0x3c # CHECK-EB: div $zero, $9, $7
76
77 0x00 0xe9 0xbb 0x3c # CHECK-EB: divu $zero, $9, $7
78
79 0x00 0x83 0x38 0x00 # CHECK: sll $4, $3, 7
80
81 0x00 0x65 0x10 0x10 # CHECK: sllv $2, $3, $5
82
83 0x00 0x83 0x38 0x80 # CHECK: sra $4, $3, 7
84
85 0x00 0x65 0x10 0x90 # CHECK: srav $2, $3, $5
86
87 0x00 0x83 0x38 0x40 # CHECK: srl $4, $3, 7
88
89 0x00 0x65 0x10 0x50 # CHECK: srlv $2, $3, $5
90
91 0x01 0x26 0x38 0xc0 # CHECK: rotr $9, $6, 7
92
93 0x00 0xc7 0x48 0xd0 # CHECK: rotrv $9, $6, $7
94
95 0x1c 0xa4 0x00 0x08 # CHECK: lb $5, 8($4)
96
97 0x14 0xc4 0x00 0x08 # CHECK: lbu $6, 8($4)
98
99 0x3c 0x44 0x00 0x08 # CHECK: lh $2, 8($4)
100
101 0x34 0x82 0x00 0x08 # CHECK: lhu $4, 8($2)
102
103 0xfc 0xc5 0x00 0x04 # CHECK: lw $6, 4($5)
104
105 0xfc 0xdd 0x00 0x7b # CHECK: lw $6, 123($sp)
106
107 0x18 0xa4 0x00 0x08 # CHECK: sb $5, 8($4)
108
109 0x38 0x44 0x00 0x08 # CHECK: sh $2, 8($4)
110
111 0xf8 0xa6 0x00 0x04 # CHECK: sw $5, 4($6)
112
113 0xf8 0xbd 0x00 0x7b # CHECK: sw $5, 123($sp)
114
115 0x60 0x44 0xe0 0x08 # CHECK: lwu $2, 8($4)
116
117 0x60 0x85 0x00 0x10 # CHECK: lwl $4, 16($5)
118
119 0x60 0x85 0x10 0x10 # CHECK: lwr $4, 16($5)
120
121 0x60 0x85 0x80 0x10 # CHECK: swl $4, 16($5)
122
123 0x60 0x85 0x90 0x10 # CHECK: swr $4, 16($5)
124
125 0x00 0xe6 0x48 0x58 # CHECK: movz $9, $6, $7
126
127 0x00 0xe6 0x48 0x18 # CHECK: movn $9, $6, $7
128
129 0x55 0x26 0x09 0x7b # CHECK: movt $9, $6, $fcc0
130
131 0x55 0x26 0x01 0x7b # CHECK: movf $9, $6, $fcc0
132
133 0x00 0x06 0x2d 0x7c # CHECK: mthi $6
134
135 0x00 0x06 0x0d 0x7c # CHECK: mfhi $6
136
137 0x00 0x06 0x3d 0x7c # CHECK: mtlo $6
138
139 0x00 0x06 0x1d 0x7c # CHECK: mflo $6
140
141 0x00 0xa4 0xcb 0x3c # CHECK: madd $4, $5
142
143 0x00 0xa4 0xdb 0x3c # CHECK: maddu $4, $5
144
145 0x00 0xa4 0xeb 0x3c # CHECK: msub $4, $5
146
147 0x00 0xa4 0xfb 0x3c # CHECK: msubu $4, $5
148
149 0x01 0x26 0x5b 0x3c # CHECK: clz $9, $6
150
151 0x01 0x26 0x4b 0x3c # CHECK: clo $9, $6
152
153 0x01 0x26 0x2b 0x3c # CHECK: seb $9, $6
154
155 0x01 0x26 0x3b 0x3c # CHECK: seh $9, $6
156
157 0x01 0x26 0x7b 0x3c # CHECK: wsbh $9, $6
158
159 0x01 0x26 0x30 0xec # CHECK: ext $9, $6, 3, 7
160
161 0x01 0x26 0x48 0xcc # CHECK: ins $9, $6, 3, 7
162
163 0xd4 0x00 0x02 0x98 # CHECK: j 1328
164
165 0xf4 0x00 0x02 0x98 # CHECK: jal 1328
166
167 0x03 0xe6 0x0f 0x3c # CHECK: jalr $ra, $6
168
169 0x00 0x07 0x0f 0x3c # CHECK: jr $7
170
171 0x47 0x05 # CHECK: jraddiusp 20
172
173 0x94 0xc9 0x02 0x9a # CHECK: beq $9, $6, 1332
174
175 0x40 0x46 0x02 0x9a # CHECK: bgez $6, 1332
176
177 0x40 0x66 0x02 0x9a # CHECK: bgezal $6, 1332
178
179 0x40 0x26 0x02 0x9a # CHECK: bltzal $6, 1332
180
181 0x40 0xc6 0x02 0x9a # CHECK: bgtz $6, 1332
182
183 0x40 0x86 0x02 0x9a # CHECK: blez $6, 1332
184
185 0xb4 0xc9 0x02 0x9a # CHECK: bne $9, $6, 1332
186
187 0x40 0x06 0x02 0x9a # CHECK: bltz $6, 1332
188
189 0x01 0x28 0x00 0x3c # CHECK: teq $8, $9
190
191 0x01 0x28 0x02 0x3c # CHECK: tge $8, $9
192
193 0x01 0x28 0x04 0x3c # CHECK: tgeu $8, $9
194
195 0x01 0x28 0x08 0x3c # CHECK: tlt $8, $9
196
197 0x01 0x28 0x0a 0x3c # CHECK: tltu $8, $9
198
199 0x01 0x28 0x0c 0x3c # CHECK: tne $8, $9
200
201 0x41,0xc9,0x45,0x67 # CHECK: teqi $9, 17767
202
203 0x41 0x29 0x45 0x67 # CHECK: tgei $9, 17767
204
205 0x41 0x69 0x45 0x67 # CHECK: tgeiu $9, 17767
206
207 0x41 0x09 0x45 0x67 # CHECK: tlti $9, 17767
208
209 0x41 0x49 0x45 0x67 # CHECK: tltiu $9, 17767
210
211 0x41 0x89 0x45 0x67 # CHECK: tnei $9, 17767
212
213 0x20 0x25 0x60 0x08 # CHECK: cache 1, 8($5)
214
215 0x60 0x25 0x20 0x08 # CHECK: pref 1, 8($5)
216
217 0x00 0x00 0x08 0x00 # CHECK: ssnop
218
219 0x00 0x00 0x18 0x00 # CHECK: ehb
220
221 0x00 0x00 0x28 0x00 # CHECK: pause
222
223 0x60 0x44 0x30 0x08 # CHECK: ll $2, 8($4)
224
225 0x60 0x44 0xb0 0x08 # CHECK: sc $2, 8($4)
226
227 0x00 0x64 0x11 0x18 # CHECK: lwxs $2, $3($4)
228
229 0x42 0x66 0x02 0x9a # CHECK: bgezals $6, 1332
230
231 0x42 0x26 0x02 0x9a # CHECK: bltzals $6, 1332
232
233 0x40 0xe9 0x02 0x9a # CHECK: beqzc $9, 1332
234
235 0x40 0xa9 0x02 0x9a # CHECK: bnezc $9, 1332
236
237 0x74 0x00 0x02 0x98 # CHECK: jals 1328
238
239 0x03 0xe6 0x4f 0x3c # CHECK: jalrs $ra, $6
240
241 0x20 0x44 0x50 0x08 # CHECK: lwm32 $16, $17, 8($4)
242
243 0x21 0x3b 0x59 0x84 # CHECK: lwm32 $16, $17, $18, $19, $20, $21, $22, $23, $fp, -1660($27)
244
245 0x20 0x44 0xd0 0x08 # CHECK: swm32 $16, $17, 8($4)
246
247 0x22 0x04 0x90 0x08 # CHECK: swp $16, 8($4)
248
249 0x22 0x04 0x10 0x08 # CHECK: lwp $16, 8($4)
250
251 0x00 0x00 0x00 0x00 # CHECK: nop
252
253 0x79 0x00 0x00 0x05 # CHECK: addiupc $2, 20
254
255 0x7b 0xbf 0xff 0xff # CHECK: addiupc $7, 16777212
256
257 0x7b 0xc0 0x00 0x00 # CHECK: addiupc $7, -16777216
258
259 0x07 0x42 # CHECK: addu16 $6, $17, $4
260
261 0x06 0xb1 # CHECK: subu16 $5, $16, $3
262
263 0x44 0x82 # CHECK: and16 $16, $2
264
265 0x44 0x0b # CHECK: not16 $17, $3
266
267 0x44 0xc4 # CHECK: or16 $16, $4
268
269 0x44 0x4d # CHECK: xor16 $17, $5
270
271 0x25 0x8a # CHECK: sll16 $3, $16, 5
272
273 0x26 0x1d # CHECK: srl16 $4, $17, 6
274
275 0x09 0x94 # CHECK: lbu16 $3, 4($17)
276
277 0x09 0x8f # CHECK: lbu16 $3, -1($16)
278
279 0x29 0x82 # CHECK: lhu16 $3, 4($16)
280
281 0x6a 0x12 # CHECK: lw16 $4, 8($17)
282
283 0x89 0x84 # CHECK: sb16 $3, 4($16)
284
285 0xaa 0x14 # CHECK: sh16 $4, 8($17)
286
287 0xea 0x11 # CHECK: sw16 $4, 4($17)
288
289 0xe8 0x11 # CHECK: sw16 $zero, 4($17)
290
291 0x46 0x09 # CHECK: mfhi $9
292
293 0x46 0x49 # CHECK: mflo $9
294
295 0x0f 0x21 # CHECK: move $25, $1
296
297 0x45 0xa9 # CHECK: jrc $9
298
299 0x45 0xc9 # CHECK: jalr $9
300
301 0x45 0xe9 # CHECK: jalrs16 $9
302
303 0x45 0x89 # CHECK: jr16 $9
304
305 0xed 0xff # CHECK: li16 $3, -1
306
307 0xed 0xfe # CHECK: li16 $3, 126
308
309 0x6f 0x83 # CHECK: addiur1sp $7, 4
310
311 0x6f 0x7e # CHECK: addiur2 $6, $7, -1
312
313 0x6f 0x76 # CHECK: addiur2 $6, $7, 12
314
315 0x4c 0xfc # CHECK: addius5 $7, -2
316
317 0x0c 0x00 # CHECK: nop
318
319 0x48 0x68 # CHECK: lw $3, 32($sp)
320
321 0xc8 0x9f # CHECK: sw $4, 124($sp)
322
323 0x8f 0x0a # CHECK: beqz16 $6, 20
324
325 0xaf 0x0a # CHECK: bnez16 $6, 20
326
327 0xcc 0x42 # CHECK: b16 132
328
329 0x65 0x88 # CHECK: lw $3, 32($gp)
330
331 0x45 0x12 # CHECK: lwm16 $16, $17, $ra, 8($sp)
332
333 0x45 0x52 # CHECK: swm16 $16, $17, $ra, 8($sp)
334
335 0x46 0x88 # CHECK: break16 8
336
337 0x46 0xce # CHECK: sdbbp16 14
338
339 0x84 0x34 # CHECK: movep $5, $6, $2, $3
340
341 0x00 0x00 0x57 0x7c # CHECK: ei
342
343 0x00 0x0a 0x57 0x7c # CHECK: ei $10
344
345 0x60 0x25 0xa6 0x08 # CHECK: cachee 1, 8($5)
346
347 0x60 0x25 0xa4 0x08 # CHECK: prefe 1, 8($5)
348
349 0x54 0x65 0x09 0xa0 # CHECK: prefx 1, $3($5)
350
351 0x60 0x82 0x62 0x08 # CHECK: lhue $4, 8($2)
352
353 0x60 0x82 0x68 0x08 # CHECK: lbe $4, 8($2)
354
355 0x60 0x82 0x60 0x08 # CHECK: lbue $4, 8($2)
356
357 0x60 0x82 0x6a 0x08 # CHECK: lhe $4, 8($2)
358
359 0x60 0x82 0x6e 0x08 # CHECK: lwe $4, 8($2)
360
361 0x60 0xa4 0xa8 0x08 # CHECK: sbe $5, 8($4)
362
363 0x60 0xa4 0xaa 0x08 # CHECK: she $5, 8($4)
364
365 0x60 0xa4 0xae 0x08 # CHECK: swe $5, 8($4)
0 # RUN: llvm-mc --disassemble %s -triple=mipsel-unknown-linux -mattr=micromips \
1 # RUN: | FileCheck %s
2
3 0xf9 0x4f # CHECK: addiusp -16
4 0xff 0x4f # CHECK: addiusp -1028
5 0xfd 0x4f # CHECK: addiusp -1032
6 0x01 0x4c # CHECK: addiusp 1024
7 0x03 0x4c # CHECK: addiusp 1028
8 0x29 0x2c # CHECK: andi16 $16, $2, 31
9 0x05 0x47 # CHECK: jraddiusp 20
10 0x42 0x07 # CHECK: addu16 $6, $17, $4
11 0xb1 0x06 # CHECK: subu16 $5, $16, $3
12 0x82 0x44 # CHECK: and16 $16, $2
13 0x0b 0x44 # CHECK: not16 $17, $3
14 0xc4 0x44 # CHECK: or16 $16, $4
15 0x4d 0x44 # CHECK: xor16 $17, $5
16 0x8a 0x25 # CHECK: sll16 $3, $16, 5
17 0x1d 0x26 # CHECK: srl16 $4, $17, 6
18 0x94 0x09 # CHECK: lbu16 $3, 4($17)
19 0x8f 0x09 # CHECK: lbu16 $3, -1($16)
20 0x82 0x29 # CHECK: lhu16 $3, 4($16)
21 0x12 0x6a # CHECK: lw16 $4, 8($17)
22 0x84 0x89 # CHECK: sb16 $3, 4($16)
23 0x14 0xaa # CHECK: sh16 $4, 8($17)
24 0x11 0xea # CHECK: sw16 $4, 4($17)
25 0x11 0xe8 # CHECK: sw16 $zero, 4($17)
26 0x09 0x46 # CHECK: mfhi $9
27 0x49 0x46 # CHECK: mflo $9
28 0x21 0x0f # CHECK: move $25, $1
29 0xa9 0x45 # CHECK: jrc $9
30 0xc9 0x45 # CHECK: jalr $9
31 0xe9 0x45 # CHECK: jalrs16 $9
32 0x89 0x45 # CHECK: jr16 $9
33 0xff 0xed # CHECK: li16 $3, -1
34 0xfe 0xed # CHECK: li16 $3, 126
35 0x83 0x6f # CHECK: addiur1sp $7, 4
36 0x7e 0x6f # CHECK: addiur2 $6, $7, -1
37 0x76 0x6f # CHECK: addiur2 $6, $7, 12
38 0xfc 0x4c # CHECK: addius5 $7, -2
39 0x00 0x0c # CHECK: nop
40 0x68 0x48 # CHECK: lw $3, 32($sp)
41 0x9f 0xc8 # CHECK: sw $4, 124($sp)
42 0x0a 0x8f # CHECK: beqz16 $6, 20
43 0x0a 0xaf # CHECK: bnez16 $6, 20
44 0x42 0xcc # CHECK: b16 132
45 0x88 0x65 # CHECK: lw $3, 32($gp)
46 0x12 0x45 # CHECK: lwm16 $16, $17, $ra, 8($sp)
47 0x52 0x45 # CHECK: swm16 $16, $17, $ra, 8($sp)
48 0x88 0x46 # CHECK: break16 8
49 0xce 0x46 # CHECK: sdbbp16 14
50 0x34 0x84 # CHECK: movep $5, $6, $2, $3
51 0xe6 0x00 0x10 0x49 # CHECK: add $9, $6, $7
52 0x26 0x11 0x67 0x45 # CHECK: addi $9, $6, 17767
53 0x26 0x31 0x67 0xc5 # CHECK: addiu $9, $6, -15001
54 0x26 0x11 0x67 0x45 # CHECK: addi $9, $6, 17767
55 0x26 0x31 0x67 0xc5 # CHECK: addiu $9, $6, -15001
56 0xe6 0x00 0x50 0x49 # CHECK: addu $9, $6, $7
57 0xe6 0x00 0x90 0x49 # CHECK: sub $9, $6, $7
58 0xa3 0x00 0xd0 0x21 # CHECK: subu $4, $3, $5
59 0xe0 0x00 0x90 0x31 # CHECK: sub $6, $zero, $7
60 0xe0 0x00 0xd0 0x31 # CHECK: subu $6, $zero, $7
61 0x08 0x00 0x50 0x39 # CHECK: addu $7, $8, $zero
62 0xa3 0x00 0x50 0x1b # CHECK: slt $3, $3, $5
63 0x63 0x90 0x67 0x00 # CHECK: slti $3, $3, 103
64 0x63 0x90 0x67 0x00 # CHECK: slti $3, $3, 103
65 0x63 0xb0 0x67 0x00 # CHECK: sltiu $3, $3, 103
66 0xa3 0x00 0x90 0x1b # CHECK: sltu $3, $3, $5
67 0xa9 0x41 0x67 0x45 # CHECK: lui $9, 17767
68 0xe6 0x00 0x50 0x4a # CHECK: and $9, $6, $7
69 0x26 0xd1 0x67 0x45 # CHECK: andi $9, $6, 17767
70 0x26 0xd1 0x67 0x45 # CHECK: andi $9, $6, 17767
71 0xa4 0x00 0x90 0x1a # CHECK: or $3, $4, $5
72 0x26 0x51 0x67 0x45 # CHECK: ori $9, $6, 17767
73 0xa3 0x00 0x10 0x1b # CHECK: xor $3, $3, $5
74 0x26 0x71 0x67 0x45 # CHECK: xori $9, $6, 17767
75 0x26 0x71 0x67 0x45 # CHECK: xori $9, $6, 17767
76 0xe6 0x00 0xd0 0x4a # CHECK: nor $9, $6, $7
77 0x08 0x00 0xd0 0x3a # CHECK: not $7, $8
78 0xe6 0x00 0x10 0x4a # CHECK: mul $9, $6, $7
79 0xe9 0x00 0x3c 0x8b # CHECK: mult $9, $7
80 0xe9 0x00 0x3c 0x9b # CHECK: multu $9, $7
81 0xe9 0x00 0x3c 0xab # CHECK: div $zero, $9, $7
82 0xe9 0x00 0x3c 0xbb # CHECK: divu $zero, $9, $7
83 0x83 0x00 0x00 0x38 # CHECK: sll $4, $3, 7
84 0x65 0x00 0x10 0x10 # CHECK: sllv $2, $3, $5
85 0x83 0x00 0x80 0x38 # CHECK: sra $4, $3, 7
86 0x65 0x00 0x90 0x10 # CHECK: srav $2, $3, $5
87 0x83 0x00 0x40 0x38 # CHECK: srl $4, $3, 7
88 0x65 0x00 0x50 0x10 # CHECK: srlv $2, $3, $5
89 0x26 0x01 0xc0 0x38 # CHECK: rotr $9, $6, 7
90 0xc7 0x00 0xd0 0x48 # CHECK: rotrv $9, $6, $7
91 0xa4 0x1c 0x08 0x00 # CHECK: lb $5, 8($4)
92 0xc4 0x14 0x08 0x00 # CHECK: lbu $6, 8($4)
93 0x44 0x3c 0x08 0x00 # CHECK: lh $2, 8($4)
94 0x82 0x34 0x08 0x00 # CHECK: lhu $4, 8($2)
95 0xc5 0xfc 0x04 0x00 # CHECK: lw $6, 4($5)
96 0xdd 0xfc 0x7b 0x00 # CHECK: lw $6, 123($sp)
97 0xa4 0x18 0x08 0x00 # CHECK: sb $5, 8($4)
98 0x44 0x38 0x08 0x00 # CHECK: sh $2, 8($4)
99 0xa6 0xf8 0x04 0x00 # CHECK: sw $5, 4($6)
100 0xbd 0xf8 0x7b 0x00 # CHECK: sw $5, 123($sp)
101 0x44 0x60 0x08 0xe0 # CHECK: lwu $2, 8($4)
102 0x85 0x60 0x10 0x00 # CHECK: lwl $4, 16($5)
103 0x85 0x60 0x10 0x10 # CHECK: lwr $4, 16($5)
104 0x85 0x60 0x10 0x80 # CHECK: swl $4, 16($5)
105 0x85 0x60 0x10 0x90 # CHECK: swr $4, 16($5)
106 0xe6 0x00 0x58 0x48 # CHECK: movz $9, $6, $7
107 0xe6 0x00 0x18 0x48 # CHECK: movn $9, $6, $7
108 0x26 0x55 0x7b 0x09 # CHECK: movt $9, $6, $fcc0
109 0x26 0x55 0x7b 0x01 # CHECK: movf $9, $6, $fcc0
110 0x06 0x00 0x7c 0x2d # CHECK: mthi $6
111 0x06 0x00 0x7c 0x0d # CHECK: mfhi $6
112 0x06 0x00 0x7c 0x3d # CHECK: mtlo $6
113 0x06 0x00 0x7c 0x1d # CHECK: mflo $6
114 0xa4 0x00 0x3c 0xcb # CHECK: madd $4, $5
115 0xa4 0x00 0x3c 0xdb # CHECK: maddu $4, $5
116 0xa4 0x00 0x3c 0xeb # CHECK: msub $4, $5
117 0xa4 0x00 0x3c 0xfb # CHECK: msubu $4, $5
118 0x26 0x01 0x3c 0x5b # CHECK: clz $9, $6
119 0x26 0x01 0x3c 0x4b # CHECK: clo $9, $6
120 0x26 0x01 0x3c 0x2b # CHECK: seb $9, $6
121 0x26 0x01 0x3c 0x3b # CHECK: seh $9, $6
122 0x26 0x01 0x3c 0x7b # CHECK: wsbh $9, $6
123 0x26 0x01 0xec 0x30 # CHECK: ext $9, $6, 3, 7
124 0x26 0x01 0xcc 0x48 # CHECK: ins $9, $6, 3, 7
125 0x00 0xd4 0x98 0x02 # CHECK: j 1328
126 0x00 0xf4 0x98 0x02 # CHECK: jal 1328
127 0xe6 0x03 0x3c 0x0f # CHECK: jalr $ra, $6
128 0x07 0x00 0x3c 0x0f # CHECK: jr $7
129 0xc9 0x94 0x9a 0x02 # CHECK: beq $9, $6, 1332
130 0x46 0x40 0x9a 0x02 # CHECK: bgez $6, 1332
131 0x66 0x40 0x9a 0x02 # CHECK: bgezal $6, 1332
132 0x26 0x40 0x9a 0x02 # CHECK: bltzal $6, 1332
133 0xc6 0x40 0x9a 0x02 # CHECK: bgtz $6, 1332
134 0x86 0x40 0x9a 0x02 # CHECK: blez $6, 1332
135 0xc9 0xb4 0x9a 0x02 # CHECK: bne $9, $6, 1332
136 0x06 0x40 0x9a 0x02 # CHECK: bltz $6, 1332
137 0x28 0x01 0x3c 0x00 # CHECK: teq $8, $9
138 0x28 0x01 0x3c 0x02 # CHECK: tge $8, $9
139 0x28 0x01 0x3c 0x04 # CHECK: tgeu $8, $9
140 0x28 0x01 0x3c 0x08 # CHECK: tlt $8, $9
141 0x28 0x01 0x3c 0x0a # CHECK: tltu $8, $9
142 0x28 0x01 0x3c 0x0c # CHECK: tne $8, $9
143 0xc9 0x41 0x67 0x45 # CHECK: teqi $9, 17767
144 0x29 0x41 0x67 0x45 # CHECK: tgei $9, 17767
145 0x69 0x41 0x67 0x45 # CHECK: tgeiu $9, 17767
146 0x09 0x41 0x67 0x45 # CHECK: tlti $9, 17767
147 0x49 0x41 0x67 0x45 # CHECK: tltiu $9, 17767
148 0x89 0x41 0x67 0x45 # CHECK: tnei $9, 17767
149 0x25 0x20 0x08 0x60 # CHECK: cache 1, 8($5)
150 0x25 0x60 0x08 0x20 # CHECK: pref 1, 8($5)
151 0x00 0x00 0x00 0x08 # CHECK: ssnop
152 0x00 0x00 0x00 0x18 # CHECK: ehb
153 0x00 0x00 0x00 0x28 # CHECK: pause
154 0x44 0x60 0x08 0x30 # CHECK: ll $2, 8($4)
155 0x44 0x60 0x08 0xb0 # CHECK: sc $2, 8($4)
156 0x64 0x00 0x18 0x11 # CHECK: lwxs $2, $3($4)
157 0x66 0x42 0x9a 0x02 # CHECK: bgezals $6, 1332
158 0x26 0x42 0x9a 0x02 # CHECK: bltzals $6, 1332
159 0xe9 0x40 0x9a 0x02 # CHECK: beqzc $9, 1332
160 0xa9 0x40 0x9a 0x02 # CHECK: bnezc $9, 1332
161 0x00 0x74 0x98 0x02 # CHECK: jals 1328
162 0xe6 0x03 0x3c 0x4f # CHECK: jalrs $ra, $6
163 0x44 0x20 0x08 0x50 # CHECK: lwm32 $16, $17, 8($4)
164 0x3b 0x21 0x84 0x59 # CHECK: lwm32 $16, $17, $18, $19, $20, $21, $22, $23, $fp, -1660($27)
165 0x44 0x20 0x08 0xd0 # CHECK: swm32 $16, $17, 8($4)
166 0x04 0x22 0x08 0x90 # CHECK: swp $16, 8($4)
167 0x04 0x22 0x08 0x10 # CHECK: lwp $16, 8($4)
168 0x00 0x00 0x00 0x00 # CHECK: nop
169 0x00 0x79 0x05 0x00 # CHECK: addiupc $2, 20
170 0xbf 0x7b 0xff 0xff # CHECK: addiupc $7, 16777212
171 0xc0 0x7b 0x00 0x00 # CHECK: addiupc $7, -16777216
172 0x00 0x00 0x7c 0x57 # CHECK: ei
173 0x0a 0x00 0x7c 0x57 # CHECK: ei $10
174 0x25 0x60 0x08 0xa6 # CHECK: cachee 1, 8($5)
175 0x25 0x60 0x08 0xa4 # CHECK: prefe 1, 8($5)
176 0x65 0x54 0xa0 0x09 # CHECK: prefx 1, $3($5)
177 0x82 0x60 0x08 0x62 # CHECK: lhue $4, 8($2)
178 0x82 0x60 0x08 0x68 # CHECK: lbe $4, 8($2)
179 0x82 0x60 0x08 0x60 # CHECK: lbue $4, 8($2)
180 0x82 0x60 0x08 0x6a # CHECK: lhe $4, 8($2)
181 0x82 0x60 0x08 0x6e # CHECK: lwe $4, 8($2)
182 0xa4 0x60 0x08 0xa8 # CHECK: sbe $5, 8($4)
183 0xa4 0x60 0x08 0xaa # CHECK: she $5, 8($4)
184 0xa4 0x60 0x08 0xae # CHECK: swe $5, 8($4)
0 # RUN: llvm-mc --disassemble %s -triple=mips-unknown-linux -mattr=micromips \
1 # RUN: | FileCheck %s
2
3 0x4f 0xf9 # CHECK: addiusp -16
4 0x4f 0xff # CHECK: addiusp -1028
5 0x4f 0xfd # CHECK: addiusp -1032
6 0x4c 0x01 # CHECK: addiusp 1024
7 0x4c 0x03 # CHECK: addiusp 1028
8 0x2c 0x29 # CHECK: andi16 $16, $2, 31
9 0x47 0x05 # CHECK: jraddiusp 20
10 0x07 0x42 # CHECK: addu16 $6, $17, $4
11 0x06 0xb1 # CHECK: subu16 $5, $16, $3
12 0x44 0x82 # CHECK: and16 $16, $2
13 0x44 0x0b # CHECK: not16 $17, $3
14 0x44 0xc4 # CHECK: or16 $16, $4
15 0x44 0x4d # CHECK: xor16 $17, $5
16 0x25 0x8a # CHECK: sll16 $3, $16, 5
17 0x26 0x1d # CHECK: srl16 $4, $17, 6
18 0x09 0x94 # CHECK: lbu16 $3, 4($17)
19 0x09 0x8f # CHECK: lbu16 $3, -1($16)
20 0x29 0x82 # CHECK: lhu16 $3, 4($16)
21 0x6a 0x12 # CHECK: lw16 $4, 8($17)
22 0x89 0x84 # CHECK: sb16 $3, 4($16)
23 0xaa 0x14 # CHECK: sh16 $4, 8($17)
24 0xea 0x11 # CHECK: sw16 $4, 4($17)
25 0xe8 0x11 # CHECK: sw16 $zero, 4($17)
26 0x46 0x09 # CHECK: mfhi $9
27 0x46 0x49 # CHECK: mflo $9
28 0x0f 0x21 # CHECK: move $25, $1
29 0x45 0xa9 # CHECK: jrc $9
30 0x45 0xc9 # CHECK: jalr $9
31 0x45 0xe9 # CHECK: jalrs16 $9
32 0x45 0x89 # CHECK: jr16 $9
33 0xed 0xff # CHECK: li16 $3, -1
34 0xed 0xfe # CHECK: li16 $3, 126
35 0x6f 0x83 # CHECK: addiur1sp $7, 4
36 0x6f 0x7e # CHECK: addiur2 $6, $7, -1
37 0x6f 0x76 # CHECK: addiur2 $6, $7, 12
38 0x4c 0xfc # CHECK: addius5 $7, -2
39 0x0c 0x00 # CHECK: nop
40 0x48 0x68 # CHECK: lw $3, 32($sp)
41 0xc8 0x9f # CHECK: sw $4, 124($sp)
42 0x8f 0x0a # CHECK: beqz16 $6, 20
43 0xaf 0x0a # CHECK: bnez16 $6, 20
44 0xcc 0x42 # CHECK: b16 132
45 0x65 0x88 # CHECK: lw $3, 32($gp)
46 0x45 0x12 # CHECK: lwm16 $16, $17, $ra, 8($sp)
47 0x45 0x52 # CHECK: swm16 $16, $17, $ra, 8($sp)
48 0x46 0x88 # CHECK: break16 8
49 0x46 0xce # CHECK: sdbbp16 14
50 0x84 0x34 # CHECK: movep $5, $6, $2, $3
51 0x00 0xe6 0x49 0x10 # CHECK: add $9, $6, $7
52 0x11 0x26 0x45 0x67 # CHECK: addi $9, $6, 17767
53 0x31 0x26 0xc5 0x67 # CHECK: addiu $9, $6, -15001
54 0x11 0x26 0x45 0x67 # CHECK: addi $9, $6, 17767
55 0x31 0x26 0xc5 0x67 # CHECK: addiu $9, $6, -15001
56 0x00 0xe6 0x49 0x50 # CHECK: addu $9, $6, $7
57 0x00 0xe6 0x49 0x90 # CHECK: sub $9, $6, $7
58 0x00 0xa3 0x21 0xd0 # CHECK: subu $4, $3, $5
59 0x00 0xe0 0x31 0x90 # CHECK: sub $6, $zero, $7
60 0x00 0xe0 0x31 0xd0 # CHECK: subu $6, $zero, $7
61 0x00 0x08 0x39 0x50 # CHECK: addu $7, $8, $zero
62 0x00 0xa3 0x1b 0x50 # CHECK: slt $3, $3, $5
63 0x90 0x63 0x00 0x67 # CHECK: slti $3, $3, 103
64 0x90 0x63 0x00 0x67 # CHECK: slti $3, $3, 103
65 0xb0 0x63 0x00 0x67 # CHECK: sltiu $3, $3, 103
66 0x00 0xa3 0x1b 0x90 # CHECK: sltu $3, $3, $5
67 0x41 0xa9 0x45 0x67 # CHECK: lui $9, 17767
68 0x00 0xe6 0x4a 0x50 # CHECK: and $9, $6, $7
69 0xd1 0x26 0x45 0x67 # CHECK: andi $9, $6, 17767
70 0xd1 0x26 0x45 0x67 # CHECK: andi $9, $6, 17767
71 0x00 0xa4 0x1a 0x90 # CHECK: or $3, $4, $5
72 0x51 0x26 0x45 0x67 # CHECK: ori $9, $6, 17767
73 0x00 0xa3 0x1b 0x10 # CHECK: xor $3, $3, $5
74 0x71 0x26 0x45 0x67 # CHECK: xori $9, $6, 17767
75 0x71 0x26 0x45 0x67 # CHECK: xori $9, $6, 17767
76 0x00 0xe6 0x4a 0xd0 # CHECK: nor $9, $6, $7
77 0x00 0x08 0x3a 0xd0 # CHECK: not $7, $8
78 0x00 0xe6 0x4a 0x10 # CHECK: mul $9, $6, $7
79 0x00 0xe9 0x8b 0x3c # CHECK: mult $9, $7
80 0x00 0xe9 0x9b 0x3c # CHECK: multu $9, $7
81 0x00 0xe9 0xab 0x3c # CHECK-EB: div $zero, $9, $7
82 0x00 0xe9 0xbb 0x3c # CHECK-EB: divu $zero, $9, $7
83 0x00 0x83 0x38 0x00 # CHECK: sll $4, $3, 7
84 0x00 0x65 0x10 0x10 # CHECK: sllv $2, $3, $5
85 0x00 0x83 0x38 0x80 # CHECK: sra $4, $3, 7
86 0x00 0x65 0x10 0x90 # CHECK: srav $2, $3, $5
87 0x00 0x83 0x38 0x40 # CHECK: srl $4, $3, 7
88 0x00 0x65 0x10 0x50 # CHECK: srlv $2, $3, $5
89 0x01 0x26 0x38 0xc0 # CHECK: rotr $9, $6, 7
90 0x00 0xc7 0x48 0xd0 # CHECK: rotrv $9, $6, $7
91 0x1c 0xa4 0x00 0x08 # CHECK: lb $5, 8($4)
92 0x14 0xc4 0x00 0x08 # CHECK: lbu $6, 8($4)
93 0x3c 0x44 0x00 0x08 # CHECK: lh $2, 8($4)
94 0x34 0x82 0x00 0x08 # CHECK: lhu $4, 8($2)
95 0xfc 0xc5 0x00 0x04 # CHECK: lw $6, 4($5)
96 0xfc 0xdd 0x00 0x7b # CHECK: lw $6, 123($sp)
97 0x18 0xa4 0x00 0x08 # CHECK: sb $5, 8($4)
98 0x38 0x44 0x00 0x08 # CHECK: sh $2, 8($4)
99 0xf8 0xa6 0x00 0x04 # CHECK: sw $5, 4($6)
100 0xf8 0xbd 0x00 0x7b # CHECK: sw $5, 123($sp)
101 0x60 0x44 0xe0 0x08 # CHECK: lwu $2, 8($4)
102 0x60 0x85 0x00 0x10 # CHECK: lwl $4, 16($5)
103 0x60 0x85 0x10 0x10 # CHECK: lwr $4, 16($5)
104 0x60 0x85 0x80 0x10 # CHECK: swl $4, 16($5)
105 0x60 0x85 0x90 0x10 # CHECK: swr $4, 16($5)
106 0x00 0xe6 0x48 0x58 # CHECK: movz $9, $6, $7
107 0x00 0xe6 0x48 0x18 # CHECK: movn $9, $6, $7
108 0x55 0x26 0x09 0x7b # CHECK: movt $9, $6, $fcc0
109 0x55 0x26 0x01 0x7b # CHECK: movf $9, $6, $fcc0
110 0x00 0x06 0x2d 0x7c # CHECK: mthi $6
111 0x00 0x06 0x0d 0x7c # CHECK: mfhi $6
112 0x00 0x06 0x3d 0x7c # CHECK: mtlo $6
113 0x00 0x06 0x1d 0x7c # CHECK: mflo $6
114 0x00 0xa4 0xcb 0x3c # CHECK: madd $4, $5
115 0x00 0xa4 0xdb 0x3c # CHECK: maddu $4, $5
116 0x00 0xa4 0xeb 0x3c # CHECK: msub $4, $5
117 0x00 0xa4 0xfb 0x3c # CHECK: msubu $4, $5
118 0x01 0x26 0x5b 0x3c # CHECK: clz $9, $6
119 0x01 0x26 0x4b 0x3c # CHECK: clo $9, $6
120 0x01 0x26 0x2b 0x3c # CHECK: seb $9, $6
121 0x01 0x26 0x3b 0x3c # CHECK: seh $9, $6
122 0x01 0x26 0x7b 0x3c # CHECK: wsbh $9, $6
123 0x01 0x26 0x30 0xec # CHECK: ext $9, $6, 3, 7
124 0x01 0x26 0x48 0xcc # CHECK: ins $9, $6, 3, 7
125 0xd4 0x00 0x02 0x98 # CHECK: j 1328
126 0xf4 0x00 0x02 0x98 # CHECK: jal 1328
127 0x03 0xe6 0x0f 0x3c # CHECK: jalr $ra, $6
128 0x00 0x07 0x0f 0x3c # CHECK: jr $7
129 0x94 0xc9 0x02 0x9a # CHECK: beq $9, $6, 1332
130 0x40 0x46 0x02 0x9a # CHECK: bgez $6, 1332
131 0x40 0x66 0x02 0x9a # CHECK: bgezal $6, 1332
132 0x40 0x26 0x02 0x9a # CHECK: bltzal $6, 1332
133 0x40 0xc6 0x02 0x9a # CHECK: bgtz $6, 1332
134 0x40 0x86 0x02 0x9a # CHECK: blez $6, 1332
135 0xb4 0xc9 0x02 0x9a # CHECK: bne $9, $6, 1332
136 0x40 0x06 0x02 0x9a # CHECK: bltz $6, 1332
137 0x01 0x28 0x00 0x3c # CHECK: teq $8, $9
138 0x01 0x28 0x02 0x3c # CHECK: tge $8, $9
139 0x01 0x28 0x04 0x3c # CHECK: tgeu $8, $9
140 0x01 0x28 0x08 0x3c # CHECK: tlt $8, $9
141 0x01 0x28 0x0a 0x3c # CHECK: tltu $8, $9
142 0x01 0x28 0x0c 0x3c # CHECK: tne $8, $9
143 0x41 0xc9 0x45 0x67 # CHECK: teqi $9, 17767
144 0x41 0x29 0x45 0x67 # CHECK: tgei $9, 17767
145 0x41 0x69 0x45 0x67 # CHECK: tgeiu $9, 17767
146 0x41 0x09 0x45 0x67 # CHECK: tlti $9, 17767
147 0x41 0x49 0x45 0x67 # CHECK: tltiu $9, 17767
148 0x41 0x89 0x45 0x67 # CHECK: tnei $9, 17767
149 0x20 0x25 0x60 0x08 # CHECK: cache 1, 8($5)
150 0x60 0x25 0x20 0x08 # CHECK: pref 1, 8($5)
151 0x00 0x00 0x08 0x00 # CHECK: ssnop
152 0x00 0x00 0x18 0x00 # CHECK: ehb
153 0x00 0x00 0x28 0x00 # CHECK: pause
154 0x60 0x44 0x30 0x08 # CHECK: ll $2, 8($4)
155 0x60 0x44 0xb0 0x08 # CHECK: sc $2, 8($4)
156 0x00 0x64 0x11 0x18 # CHECK: lwxs $2, $3($4)
157 0x42 0x66 0x02 0x9a # CHECK: bgezals $6, 1332
158 0x42 0x26 0x02 0x9a # CHECK: bltzals $6, 1332
159 0x40 0xe9 0x02 0x9a # CHECK: beqzc $9, 1332
160 0x40 0xa9 0x02 0x9a # CHECK: bnezc $9, 1332
161 0x74 0x00 0x02 0x98 # CHECK: jals 1328
162 0x03 0xe6 0x4f 0x3c # CHECK: jalrs $ra, $6
163 0x20 0x44 0x50 0x08 # CHECK: lwm32 $16, $17, 8($4)
164 0x21 0x3b 0x59 0x84 # CHECK: lwm32 $16, $17, $18, $19, $20, $21, $22, $23, $fp, -1660($27)
165 0x20 0x44 0xd0 0x08 # CHECK: swm32 $16, $17, 8($4)
166 0x22 0x04 0x90 0x08 # CHECK: swp $16, 8($4)
167 0x22 0x04 0x10 0x08 # CHECK: lwp $16, 8($4)
168 0x00 0x00 0x00 0x00 # CHECK: nop
169 0x79 0x00 0x00 0x05 # CHECK: addiupc $2, 20
170 0x7b 0xbf 0xff 0xff # CHECK: addiupc $7, 16777212
171 0x7b 0xc0 0x00 0x00 # CHECK: addiupc $7, -16777216
172 0x00 0x00 0x57 0x7c # CHECK: ei
173 0x00 0x0a 0x57 0x7c # CHECK: ei $10
174 0x60 0x25 0xa6 0x08 # CHECK: cachee 1, 8($5)
175 0x60 0x25 0xa4 0x08 # CHECK: prefe 1, 8($5)
176 0x54 0x65 0x09 0xa0 # CHECK: prefx 1, $3($5)
177 0x60 0x82 0x62 0x08 # CHECK: lhue $4, 8($2)
178 0x60 0x82 0x68 0x08 # CHECK: lbe $4, 8($2)
179 0x60 0x82 0x60 0x08 # CHECK: lbue $4, 8($2)
180 0x60 0x82 0x6a 0x08 # CHECK: lhe $4, 8($2)
181 0x60 0x82 0x6e 0x08 # CHECK: lwe $4, 8($2)
182 0x60 0xa4 0xa8 0x08 # CHECK: sbe $5, 8($4)
183 0x60 0xa4 0xaa 0x08 # CHECK: she $5, 8($4)
184 0x60 0xa4 0xae 0x08 # CHECK: swe $5, 8($4)
0 # RUN: llvm-mc --disassemble %s -triple=mips-unknown-linux -mcpu=mips32r6 -mattr=micromips | FileCheck %s
1
2 0x6f 0x83 # CHECK: addiur1sp $7, 4
3 0x6f 0x7e # CHECK: addiur2 $6, $7, -1
4 0x6f 0x76 # CHECK: addiur2 $6, $7, 12
5 0x4c 0xfc # CHECK: addius5 $7, -2
6 0x4f 0xff # CHECK: addiusp -1028
7 0x4f 0xfd # CHECK: addiusp -1032
8 0x4c 0x01 # CHECK: addiusp 1024
9 0x4c 0x03 # CHECK: addiusp 1028
10 0x4f 0xf9 # CHECK: addiusp -16
11 0xcc 0x42 # CHECK: bc16 132
12 0x8f 0x0a # CHECK: beqzc16 $6, 20
13 0xaf 0x0a # CHECK: bnezc16 $6, 20
14 0x45 0x2b # CHECK: jalr $9
15 0x45 0x23 # CHECK: jrc16 $9
16 0x44 0xb3 # CHECK: jrcaddiusp 20
17 0x65 0x88 # CHECK: lw $3, 32($gp)
18 0x48 0x66 # CHECK: lw $3, 24($sp)
19 0x6a 0x12 # CHECK: lw16 $4, 8($17)
20 0x29 0x82 # CHECK: lhu16 $3, 4($16)
21 0x09 0x94 # CHECK: lbu16 $3, 4($17)
22 0x09 0x9f # CHECK: lbu16 $3, -1($17)
23 0x04 0xcc # CHECK: addu16 $6, $17, $4
24 0x44 0x21 # CHECK: and16 $16, $2
25 0x2e 0x56 # CHECK: andi16 $4, $5, 8
26 0x46 0x70 # CHECK: not16 $4, $7
27 0x45 0xf9 # CHECK: or16 $3, $7
28 0x25 0xe0 # CHECK: sll16 $3, $6, 8
29 0x25 0xe1 # CHECK: srl16 $3, $6, 8
30 0x00 0xa4 0x19 0x10 # CHECK: add $3, $4, $5
31 0x30 0x64 0x04 0xd2 # CHECK: addiu $3, $4, 1234
32 0x00 0xa4 0x19 0x50 # CHECK: addu $3, $4, $5
33 0x78 0x80 0x00 0x19 # CHECK: addiupc $4, 100
34 0x78 0x7f 0x00 0x38 # CHECK: aluipc $3, 56
35 0x78 0x7e 0xff 0xff # CHECK: auipc $3, -1
36 0x00 0x43 0x24 0x1f # CHECK: align $4, $2, $3, 2
37 0x00 0xa4 0x1a 0x50 # CHECK: and $3, $4, $5
38 0xd0 0x64 0x04 0xd2 # CHECK: andi $3, $4, 1234
39 0x10 0x62 0xff 0xe9 # CHECK: aui $3, $2, -23
40 0x74 0x40 0x02 0x9a # CHECK: beqzalc $2, 1332
41 0x7c 0x40 0x02 0x9a # CHECK: bnezalc $2, 1332
42 0xc0 0x42 0x02 0x9a # CHECK: bgezalc $2, 1332
43 0xe0 0x40 0x02 0x9a # CHECK: bgtzalc $2, 1332
44 0xe0 0x42 0x02 0x9a # CHECK: bltzalc $2, 1332
45 0xc0 0x40 0x02 0x9a # CHECK: blezalc $2, 1332
46 0xb4 0x37 0x96 0xb8 # CHECK: balc 14572256
47 0x94 0x37 0x96 0xb8 # CHECK: bc 14572256
48 0x00 0x44 0x0b 0x3c # CHECK: bitswap $4, $2
49 0x00 0x00 0x00 0x07 # CHECK: break
50 0x00 0x07 0x00 0x07 # CHECK: break 7
51 0x00 0x07 0x01 0x47 # CHECK: break 7, 5
52 0x20 0x25 0x60 0x08 # CHECK: cache 1, 8($5)
53 0x01 0x65 0x4b 0x3c # CHECK: clo $11, $5
54 0x03 0x80 0xe8 0x50 # CHECK: clz $sp, $gp
55 0x00 0xa4 0x19 0x18 # CHECK: div $3, $4, $5
56 0x00 0xa4 0x19 0x98 # CHECK: divu $3, $4, $5
57 0x00 0x00 0x18 0x00 # CHECK: ehb
58 0x00 0x00 0x57 0x7c # CHECK: ei
59 0x00 0x0a 0x57 0x7c # CHECK: ei $10
60 0x00 0x00 0xf3 0x7c # CHECK: eret
61 0x00 0x01 0xf3 0x7c # CHECK: eretnc
62 0x80 0x05 0x01 0x00 # CHECK: jialc $5, 256
63 0xa0 0x05 0x01 0x00 # CHECK: jic $5, 256
64 0x78 0x48 0x00 0x43 # CHECK: lwpc $2, 268
65 0x00 0x43 0x26 0x0f # CHECK: lsa $2, $3, $4, 3
66 0x00 0xa4 0x19 0x58 # CHECK: mod $3, $4, $5
67 0x00 0xa4 0x19 0xd8 # CHECK: modu $3, $4, $5
68 0x00 0xa4 0x18 0x18 # CHECK: mul $3, $4, $5
69 0x00 0xa4 0x18 0x58 # CHECK: muh $3, $4, $5
70 0x00 0xa4 0x18 0x98 # CHECK: mulu $3, $4, $5
71 0x00 0xa4 0x18 0xd8 # CHECK: muhu $3, $4, $5
72 0x00 0x00 0x00 0x00 # CHECK: nop
73 0x00 0xa4 0x1a 0xd0 # CHECK: nor $3, $4, $5
74 0x00 0xa4 0x1a 0x90 # CHECK: or $3, $4, $5
75 0x50 0x64 0x04 0xd2 # CHECK: ori $3, $4, 1234
76 0x60 0x25 0x20 0x08 # CHECK: pref 1, 8($5)
77 0x00 0x83 0x11 0x40 # CHECK: seleqz $2, $3, $4
78 0x00 0x83 0x11 0x80 # CHECK: selnez $2, $3, $4
79 0x00 0x83 0x38 0x00 # CHECK: sll $4, $3, 7
80 0x00 0xa4 0x19 0x90 # CHECK: sub $3, $4, $5
81 0x00 0xa4 0x19 0xd0 # CHECK: subu $3, $4, $5
82 0x00 0x64 0xf1 0x7c # CHECK: wrpgpr $3, $4
83 0x00 0x64 0x7b 0x3c # CHECK: wsbh $3, $4
84 0x00 0xa4 0x1b 0x10 # CHECK: xor $3, $4, $5
85 0x70 0x64 0x04 0xd2 # CHECK: xori $3, $4, 1234
86 0x18 0x85 0x00 0x06 # CHECK: sb $4, 6($5)
87 0x60 0x85 0xa8 0x06 # CHECK: sbe $4, 6($5)
88 0x60 0x85 0xac 0x06 # CHECK: sce $4, 6($5)
89 0x38 0x85 0x00 0x06 # CHECK: sh $4, 6($5)
90 0x60 0x85 0xaa 0x06 # CHECK: she $4, 6($5)
91 0x60 0x85 0x6c 0x06 # CHECK: lle $4, 6($5)
92 0x60 0x85 0x6e 0x06 # CHECK: lwe $4, 6($5)
93 0xfc 0x85 0x00 0x06 # CHECK: lw $4, 6($5)
94 0x10 0xc0 0x45 0x67 # CHECK: lui $6, 17767
95 0x00 0x64 0x2b 0x3c # CHECK: seb $3, $4
96 0x00 0x64 0x3b 0x3c # CHECK: seh $3, $4
97 0xf8 0xa6 0x00 0x04 # CHECK: sw $5, 4($6)
98 0x60 0xa4 0xae 0x08 # CHECK: swe $5, 8($4)
99 0x54 0xa4 0x18 0x30 # CHECK: add.s $f3, $f4, $f5
100 0x54 0xc4 0x11 0x30 # CHECK: add.d $f2, $f4, $f6
101 0x54 0xa4 0x18 0x70 # CHECK: sub.s $f3, $f4, $f5
102 0x54 0xc4 0x11 0x70 # CHECK: sub.d $f2, $f4, $f6
103 0x54 0xa4 0x18 0xb0 # CHECK: mul.s $f3, $f4, $f5
104 0x54 0xc4 0x11 0xb0 # CHECK: mul.d $f2, $f4, $f6
105 0x54 0xa4 0x18 0xf0 # CHECK: div.s $f3, $f4, $f5
106 0x54 0xc4 0x11 0xf0 # CHECK: div.d $f2, $f4, $f6
107 0x54 0xa4 0x19 0xb8 # CHECK: maddf.s $f3, $f4, $f5
108 0x54 0xa4 0x1b 0xb8 # CHECK: maddf.d $f3, $f4, $f5
109 0x54 0xa4 0x19 0xf8 # CHECK: msubf.s $f3, $f4, $f5
110 0x54 0xa4 0x1b 0xf8 # CHECK: msubf.d $f3, $f4, $f5
111 0x54 0xc7 0x00 0x7b # CHECK: mov.s $f6, $f7
112 0x54 0x86 0x20 0x7b # CHECK: mov.d $f4, $f6
113 0x54 0xc7 0x0b 0x7b # CHECK: neg.s $f6, $f7
114 0x54 0x86 0x2b 0x7b # CHECK: neg.d $f4, $f6
115 0x54 0x64 0x28 0x0b # CHECK: max.s $f5, $f4, $f3
116 0x54 0x64 0x2a 0x0b # CHECK: max.d $f5, $f4, $f3
117 0x54 0x64 0x28 0x2b # CHECK: maxa.s $f5, $f4, $f3
118 0x54 0x64 0x2a 0x2b # CHECK: maxa.d $f5, $f4, $f3
119 0x54 0x64 0x28 0x03 # CHECK: min.s $f5, $f4, $f3
120 0x54 0x64 0x2a 0x03 # CHECK: min.d $f5, $f4, $f3
121 0x54 0x64 0x28 0x23 # CHECK: mina.s $f5, $f4, $f3
122 0x54 0x64 0x2a 0x23 # CHECK: mina.d $f5, $f4, $f3
123 0x54 0x83 0x10 0x05 # CHECK: cmp.af.s $f2, $f3, $f4
124 0x54 0x83 0x10 0x45 # CHECK: cmp.un.s $f2, $f3, $f4
125 0x54 0x83 0x10 0x85 # CHECK: cmp.eq.s $f2, $f3, $f4
126 0x54 0x83 0x10 0xc5 # CHECK: cmp.ueq.s $f2, $f3, $f4
127 0x54 0x83 0x11 0x05 # CHECK: cmp.lt.s $f2, $f3, $f4
128 0x54 0x83 0x11 0x45 # CHECK: cmp.ult.s $f2, $f3, $f4
129 0x54 0x83 0x11 0x85 # CHECK: cmp.le.s $f2, $f3, $f4
130 0x54 0x83 0x11 0xc5 # CHECK: cmp.ule.s $f2, $f3, $f4
131 0x54 0x83 0x12 0x05 # CHECK: cmp.saf.s $f2, $f3, $f4
132 0x54 0x83 0x12 0x45 # CHECK: cmp.sun.s $f2, $f3, $f4
133 0x54 0x83 0x12 0x85 # CHECK: cmp.seq.s $f2, $f3, $f4
134 0x54 0x83 0x12 0xc5 # CHECK: cmp.sueq.s $f2, $f3, $f4
135 0x54 0x83 0x13 0x05 # CHECK: cmp.slt.s $f2, $f3, $f4
136 0x54 0x83 0x13 0x45 # CHECK: cmp.sult.s $f2, $f3, $f4
137 0x54 0x83 0x13 0x85 # CHECK: cmp.sle.s $f2, $f3, $f4
138 0x54 0x83 0x13 0xc5 # CHECK: cmp.sule.s $f2, $f3, $f4
139 0x54 0x83 0x10 0x15 # CHECK: cmp.af.d $f2, $f3, $f4
140 0x54 0x83 0x10 0x55 # CHECK: cmp.un.d $f2, $f3, $f4
141 0x54 0x83 0x10 0x95 # CHECK: cmp.eq.d $f2, $f3, $f4
142 0x54 0x83 0x10 0xd5 # CHECK: cmp.ueq.d $f2, $f3, $f4
143 0x54 0x83 0x11 0x15 # CHECK: cmp.lt.d $f2, $f3, $f4
144 0x54 0x83 0x11 0x55 # CHECK: cmp.ult.d $f2, $f3, $f4
145 0x54 0x83 0x11 0x95 # CHECK: cmp.le.d $f2, $f3, $f4
146 0x54 0x83 0x11 0xd5 # CHECK: cmp.ule.d $f2, $f3, $f4
147 0x54 0x83 0x12 0x15 # CHECK: cmp.saf.d $f2, $f3, $f4
148 0x54 0x83 0x12 0x55 # CHECK: cmp.sun.d $f2, $f3, $f4
149 0x54 0x83 0x12 0x95 # CHECK: cmp.seq.d $f2, $f3, $f4
150 0x54 0x83 0x12 0xd5 # CHECK: cmp.sueq.d $f2, $f3, $f4
151 0x54 0x83 0x13 0x15 # CHECK: cmp.slt.d $f2, $f3, $f4
152 0x54 0x83 0x13 0x55 # CHECK: cmp.sult.d $f2, $f3, $f4
153 0x54 0x83 0x13 0x95 # CHECK: cmp.sle.d $f2, $f3, $f4
154 0x54 0x83 0x13 0xd5 # CHECK: cmp.sule.d $f2, $f3, $f4
155 0x54 0x64 0x01 0x3b # CHECK: cvt.l.s $f3, $f4
156 0x54 0x64 0x41 0x3b # CHECK: cvt.l.d $f3, $f4
157 0x54 0x64 0x09 0x3b # CHECK: cvt.w.s $f3, $f4
158 0x54 0x64 0x49 0x3b # CHECK: cvt.w.d $f3, $f4
159 0x54 0x44 0x13 0x7b # CHECK: cvt.d.s $f2, $f4
160 0x54 0x44 0x33 0x7b # CHECK: cvt.d.w $f2, $f4
161 0x54 0x44 0x53 0x7b # CHECK: cvt.d.l $f2, $f4
162 0x54 0x44 0x1b 0x7b # CHECK: cvt.s.d $f2, $f4
163 0x54 0x64 0x3b 0x7b # CHECK: cvt.s.w $f3, $f4
164 0x54 0x64 0x5b 0x7b # CHECK: cvt.s.l $f3, $f4
165 0x54 0x65 0x03 0x7b # CHECK: abs.s $f3, $f5
166 0x54 0x44 0x23 0x7b # CHECK: abs.d $f2, $f4
167 0x54 0x65 0x03 0x3b # CHECK: floor.l.s $f3, $f5
168 0x54 0x44 0x43 0x3b # CHECK: floor.l.d $f2, $f4
169 0x54 0x65 0x0b 0x3b # CHECK: floor.w.s $f3, $f5
170 0x54 0x44 0x4b 0x3b # CHECK: floor.w.d $f2, $f4
171 0x54 0x65 0x13 0x3b # CHECK: ceil.l.s $f3, $f5
172 0x54 0x44 0x53 0x3b # CHECK: ceil.l.d $f2, $f4
173 0x54 0x65 0x1b 0x3b # CHECK: ceil.w.s $f3, $f5
174 0x54 0x44 0x5b 0x3b # CHECK: ceil.w.d $f2, $f4
175 0x54 0x65 0x23 0x3b # CHECK: trunc.l.s $f3, $f5
176 0x54 0x44 0x63 0x3b # CHECK: trunc.l.d $f2, $f4
177 0x54 0x65 0x2b 0x3b # CHECK: trunc.w.s $f3, $f5
178 0x54 0x44 0x6b 0x3b # CHECK: trunc.w.d $f2, $f4
179 0x54 0x65 0x0a 0x3b # CHECK: sqrt.s $f3, $f5
180 0x54 0x44 0x4a 0x3b # CHECK: sqrt.d $f2, $f4
181 0x54 0x65 0x02 0x3b # CHECK: rsqrt.s $f3, $f5
182 0x54 0x44 0x42 0x3b # CHECK: rsqrt.d $f2, $f4
183 0x60 0x25 0xa6 0x08 # CHECK: cachee 1, 8($5)
184 0x60 0x25 0xa4 0x08 # CHECK: prefe 1, 8($5)
185 0x01 0x28 0x00 0x3c # CHECK: teq $8, $9
186 0x00 0xe5 0xf0 0x3c # CHECK: teq $5, $7, 15
187 0x01 0x47 0x02 0x3c # CHECK: tge $7, $10
188 0x02 0x67 0xf2 0x3c # CHECK: tge $7, $19, 15
189 0x03 0x96 0x04 0x3c # CHECK: tgeu $22, $gp
190 0x01 0xd4 0xf4 0x3c # CHECK: tgeu $20, $14, 15
191 0x01 0xaf 0x08 0x3c # CHECK: tlt $15, $13
192 0x02 0x62 0xf8 0x3c # CHECK: tlt $2, $19, 15
193 0x02 0x0b 0x0a 0x3c # CHECK: tltu $11, $16
194 0x03 0xb0 0xfa 0x3c # CHECK: tltu $16, $sp, 15
195 0x02 0x26 0x0c 0x3c # CHECK: tne $6, $17
196 0x01 0x07 0xfc 0x3c # CHECK: tne $7, $8, 15
+0
-391
test/MC/Disassembler/Mips/micromips32r6.txt less more
None # RUN: llvm-mc --disassemble %s -triple=mips-unknown-linux -mcpu=mips32r6 -mattr=micromips | FileCheck %s
1
2 0x00 0xa4 0x19 0x10 # CHECK: add $3, $4, $5
3
4 0x30 0x64 0x04 0xd2 # CHECK: addiu $3, $4, 1234
5
6 0x00 0xa4 0x19 0x50 # CHECK: addu $3, $4, $5
7
8 0x78 0x80 0x00 0x19 # CHECK: addiupc $4, 100
9
10 0x6f 0x83 # CHECK: addiur1sp $7, 4
11
12 0x6f 0x7e # CHECK: addiur2 $6, $7, -1
13
14 0x6f 0x76 # CHECK: addiur2 $6, $7, 12
15
16 0x4c 0xfc # CHECK: addius5 $7, -2
17
18 0x4f 0xff # CHECK: addiusp -1028
19
20 0x4f 0xfd # CHECK: addiusp -1032
21
22 0x4c 0x01 # CHECK: addiusp 1024
23
24 0x4c 0x03 # CHECK: addiusp 1028
25
26 0x4f 0xf9 # CHECK: addiusp -16
27
28 0x78 0x7f 0x00 0x38 # CHECK: aluipc $3, 56
29
30 0x78 0x7e 0xff 0xff # CHECK: auipc $3, -1
31
32 0x00 0x43 0x24 0x1f # CHECK: align $4, $2, $3, 2
33
34 0x00 0xa4 0x1a 0x50 # CHECK: and $3, $4, $5
35
36 0xd0 0x64 0x04 0xd2 # CHECK: andi $3, $4, 1234
37
38 0x10 0x62 0xff 0xe9 # CHECK: aui $3, $2, -23
39
40 0x74 0x40 0x02 0x9a # CHECK: beqzalc $2, 1332
41
42 0x7c 0x40 0x02 0x9a # CHECK: bnezalc $2, 1332
43
44 0xc0 0x42 0x02 0x9a # CHECK: bgezalc $2, 1332
45
46 0xe0 0x40 0x02 0x9a # CHECK: bgtzalc $2, 1332
47
48 0xe0 0x42 0x02 0x9a # CHECK: bltzalc $2, 1332
49
50 0xc0 0x40 0x02 0x9a # CHECK: blezalc $2, 1332
51
52 0xb4 0x37 0x96 0xb8 # CHECK: balc 14572256
53
54 0x94 0x37 0x96 0xb8 # CHECK: bc 14572256
55
56 0xcc 0x42 # CHECK: bc16 132
57
58 0x8f 0x0a # CHECK: beqzc16 $6, 20
59
60 0xaf 0x0a # CHECK: bnezc16 $6, 20
61
62 0x00 0x44 0x0b 0x3c # CHECK: bitswap $4, $2
63
64 0x00 0x00 0x00 0x07 # CHECK: break
65
66 0x00 0x07 0x00 0x07 # CHECK: break 7
67
68 0x00 0x07 0x01 0x47 # CHECK: break 7, 5
69
70 0x20 0x25 0x60 0x08 # CHECK: cache 1, 8($5)
71
72 0x01 0x65 0x4b 0x3c # CHECK: clo $11, $5
73
74 0x03 0x80 0xe8 0x50 # CHECK: clz $sp, $gp
75
76 0x00 0xa4 0x19 0x18 # CHECK: div $3, $4, $5
77
78 0x00 0xa4 0x19 0x98 # CHECK: divu $3, $4, $5
79
80 0x00 0x00 0x18 0x00 # CHECK: ehb
81
82 0x00 0x00 0x57 0x7c # CHECK: ei
83
84 0x00 0x0a 0x57 0x7c # CHECK: ei $10
85
86 0x00 0x00 0xf3 0x7c # CHECK: eret
87
88 0x00 0x01 0xf3 0x7c # CHECK: eretnc
89
90 0x45 0x2b # CHECK: jalr $9
91
92 0x80 0x05 0x01 0x00 # CHECK: jialc $5, 256
93
94 0xa0 0x05 0x01 0x00 # CHECK: jic $5, 256
95
96 0x45 0x23 # CHECK: jrc16 $9
97
98 0x44 0xb3 # CHECK: jrcaddiusp 20
99
100 0x78 0x48 0x00 0x43 # CHECK: lwpc $2, 268
101
102 0x00 0x43 0x26 0x0f # CHECK: lsa $2, $3, $4, 3
103
104 0x00 0xa4 0x19 0x58 # CHECK: mod $3, $4, $5
105
106 0x00 0xa4 0x19 0xd8 # CHECK: modu $3, $4, $5
107
108 0x00 0xa4 0x18 0x18 # CHECK: mul $3, $4, $5
109
110 0x00 0xa4 0x18 0x58 # CHECK: muh $3, $4, $5
111
112 0x00 0xa4 0x18 0x98 # CHECK: mulu $3, $4, $5
113
114 0x00 0xa4,0x18,0xd8 # CHECK: muhu $3, $4, $5
115
116 0x00 0x00 0x00 0x00 # CHECK: nop
117
118 0x00 0xa4 0x1a 0xd0 # CHECK: nor $3, $4, $5
119
120 0x00,0xa4,0x1a,0x90 # CHECK: or $3, $4, $5
121
122 0x50 0x64 0x04 0xd2 # CHECK: ori $3, $4, 1234
123
124 0x60 0x25 0x20 0x08 # CHECK: pref 1, 8($5)
125
126 0x00 0x83 0x11 0x40 # CHECK: seleqz $2, $3, $4
127
128 0x00 0x83 0x11 0x80 # CHECK: selnez $2, $3, $4
129
130 0x00 0x83 0x38 0x00 # CHECK: sll $4, $3, 7
131
132 0x00 0xa4 0x19 0x90 # CHECK: sub $3, $4, $5
133
134 0x00 0xa4 0x19 0xd0 # CHECK: subu $3, $4, $5
135
136 0x00 0x64 0xf1 0x7c # CHECK: wrpgpr $3, $4
137
138 0x00 0x64 0x7b 0x3c # CHECK: wsbh $3, $4
139
140 0x00 0xa4 0x1b 0x10 # CHECK: xor $3, $4, $5
141
142 0x70 0x64 0x04 0xd2 # CHECK: xori $3, $4, 1234
143
144 0x18 0x85 0x00 0x06 # CHECK: sb $4, 6($5)
145
146 0x60 0x85 0xa8 0x06 # CHECK: sbe $4, 6($5)
147
148 0x60 0x85 0xac 0x06 # CHECK: sce $4, 6($5)
149
150 0x38 0x85 0x00 0x06 # CHECK: sh $4, 6($5)
151
152 0x60 0x85 0xaa 0x06 # CHECK: she $4, 6($5)
153
154 0x60 0x85 0x6c 0x06 # CHECK: lle $4, 6($5)
155
156 0x60 0x85 0x6e 0x06 # CHECK: lwe $4, 6($5)
157
158 0xfc 0x85 0x00 0x06 # CHECK: lw $4, 6($5)
159
160 0x10 0xc0 0x45 0x67 # CHECK: lui $6, 17767
161
162 0x00 0x64 0x2b 0x3c # CHECK: seb $3, $4
163
164 0x00 0x64 0x3b 0x3c # CHECK: seh $3, $4
165
166 0xf8,0xa6,0x00,0x04 # CHECK: sw $5, 4($6)
167
168 0x60,0xa4,0xae,0x08 # CHECK: swe $5, 8($4)
169
170 0x54 0xa4 0x18 0x30 # CHECK: add.s $f3, $f4, $f5
171
172 0x54 0xc4 0x11 0x30 # CHECK: add.d $f2, $f4, $f6
173
174 0x54 0xa4 0x18 0x70 # CHECK: sub.s $f3, $f4, $f5
175
176 0x54 0xc4 0x11 0x70 # CHECK: sub.d $f2, $f4, $f6
177
178 0x54 0xa4 0x18 0xb0 # CHECK: mul.s $f3, $f4, $f5
179
180 0x54 0xc4 0x11 0xb0 # CHECK: mul.d $f2, $f4, $f6
181
182 0x54 0xa4 0x18 0xf0 # CHECK: div.s $f3, $f4, $f5
183
184 0x54 0xc4 0x11 0xf0 # CHECK: div.d $f2, $f4, $f6
185
186 0x54 0xa4 0x19 0xb8 # CHECK: maddf.s $f3, $f4, $f5
187
188 0x54 0xa4 0x1b 0xb8 # CHECK: maddf.d $f3, $f4, $f5
189
190 0x54 0xa4 0x19 0xf8 # CHECK: msubf.s $f3, $f4, $f5
191
192 0x54 0xa4 0x1b 0xf8 # CHECK: msubf.d $f3, $f4, $f5
193
194 0x54,0xc7,0x00,0x7b # CHECK: mov.s $f6, $f7
195
196 0x54,0x86,0x20,0x7b # CHECK: mov.d $f4, $f6
197
198 0x54,0xc7,0x0b,0x7b # CHECK: neg.s $f6, $f7
199
200 0x54,0x86,0x2b,0x7b # CHECK: neg.d $f4, $f6
201
202 0x54 0x64 0x28 0x0b # CHECK: max.s $f5, $f4, $f3
203
204 0x54 0x64 0x2a 0x0b # CHECK: max.d $f5, $f4, $f3
205
206 0x54 0x64 0x28 0x2b # CHECK: maxa.s $f5, $f4, $f3
207
208 0x54 0x64 0x2a 0x2b # CHECK: maxa.d $f5, $f4, $f3
209
210 0x54 0x64 0x28 0x03 # CHECK: min.s $f5, $f4, $f3
211
212 0x54 0x64 0x2a 0x03 # CHECK: min.d $f5, $f4, $f3
213
214 0x54 0x64 0x28 0x23 # CHECK: mina.s $f5, $f4, $f3
215
216 0x54 0x64 0x2a 0x23 # CHECK: mina.d $f5, $f4, $f3
217
218 0x54 0x83 0x10 0x05 # CHECK: cmp.af.s $f2, $f3, $f4
219
220 0x54 0x83 0x10 0x45 # CHECK: cmp.un.s $f2, $f3, $f4
221
222 0x54 0x83 0x10 0x85 # CHECK: cmp.eq.s $f2, $f3, $f4
223
224 0x54 0x83 0x10 0xc5 # CHECK: cmp.ueq.s $f2, $f3, $f4
225
226 0x54 0x83 0x11 0x05 # CHECK: cmp.lt.s $f2, $f3, $f4
227
228 0x54 0x83 0x11 0x45 # CHECK: cmp.ult.s $f2, $f3, $f4
229
230 0x54 0x83 0x11 0x85 # CHECK: cmp.le.s $f2, $f3, $f4
231
232 0x54 0x83 0x11 0xc5 # CHECK: cmp.ule.s $f2, $f3, $f4
233
234 0x54 0x83 0x12 0x05 # CHECK: cmp.saf.s $f2, $f3, $f4
235
236 0x54 0x83 0x12 0x45 # CHECK: cmp.sun.s $f2, $f3, $f4
237
238 0x54 0x83 0x12 0x85 # CHECK: cmp.seq.s $f2, $f3, $f4
239
240 0x54 0x83 0x12 0xc5 # CHECK: cmp.sueq.s $f2, $f3, $f4
241
242 0x54 0x83 0x13 0x05 # CHECK: cmp.slt.s $f2, $f3, $f4
243
244 0x54 0x83 0x13 0x45 # CHECK: cmp.sult.s $f2, $f3, $f4
245
246 0x54 0x83 0x13 0x85 # CHECK: cmp.sle.s $f2, $f3, $f4
247
248 0x54 0x83 0x13 0xc5 # CHECK: cmp.sule.s $f2, $f3, $f4
249
250 0x54 0x83 0x10 0x15 # CHECK: cmp.af.d $f2, $f3, $f4
251
252 0x54 0x83 0x10 0x55 # CHECK: cmp.un.d $f2, $f3, $f4
253
254 0x54 0x83 0x10 0x95 # CHECK: cmp.eq.d $f2, $f3, $f4
255
256 0x54 0x83 0x10 0xd5 # CHECK: cmp.ueq.d $f2, $f3, $f4
257
258 0x54 0x83 0x11 0x15 # CHECK: cmp.lt.d $f2, $f3, $f4
259
260 0x54 0x83 0x11 0x55 # CHECK: cmp.ult.d $f2, $f3, $f4
261
262 0x54 0x83 0x11 0x95 # CHECK: cmp.le.d $f2, $f3, $f4
263
264 0x54 0x83 0x11 0xd5 # CHECK: cmp.ule.d $f2, $f3, $f4
265
266 0x54 0x83 0x12 0x15 # CHECK: cmp.saf.d $f2, $f3, $f4
267
268 0x54 0x83 0x12 0x55 # CHECK: cmp.sun.d $f2, $f3, $f4
269
270 0x54 0x83 0x12 0x95 # CHECK: cmp.seq.d $f2, $f3, $f4
271
272 0x54 0x83 0x12 0xd5 # CHECK: cmp.sueq.d $f2, $f3, $f4
273
274 0x54 0x83 0x13 0x15 # CHECK: cmp.slt.d $f2, $f3, $f4
275
276 0x54 0x83 0x13 0x55 # CHECK: cmp.sult.d $f2, $f3, $f4
277
278 0x54 0x83 0x13 0x95 # CHECK: cmp.sle.d $f2, $f3, $f4
279
280 0x54 0x83 0x13 0xd5 # CHECK: cmp.sule.d $f2, $f3, $f4
281
282 0x54 0x64 0x01 0x3b # CHECK: cvt.l.s $f3, $f4
283
284 0x54 0x64 0x41 0x3b # CHECK: cvt.l.d $f3, $f4
285
286 0x54 0x64 0x09 0x3b # CHECK: cvt.w.s $f3, $f4
287
288 0x54 0x64 0x49 0x3b # CHECK: cvt.w.d $f3, $f4
289
290 0x54 0x44 0x13 0x7b # CHECK: cvt.d.s $f2, $f4
291
292 0x54 0x44 0x33 0x7b # CHECK: cvt.d.w $f2, $f4
293
294 0x54 0x44 0x53 0x7b # CHECK: cvt.d.l $f2, $f4
295
296 0x54,0x44,0x1b,0x7b # CHECK: cvt.s.d $f2, $f4
297
298 0x54,0x64,0x3b,0x7b # CHECK: cvt.s.w $f3, $f4
299
300 0x54,0x64,0x5b,0x7b # CHECK: cvt.s.l $f3, $f4
301
302 0x54 0x65 0x03 0x7b # CHECK: abs.s $f3, $f5
303
304 0x54 0x44 0x23 0x7b # CHECK: abs.d $f2, $f4
305
306 0x54 0x65 0x03 0x3b # CHECK: floor.l.s $f3, $f5
307
308 0x54 0x44 0x43 0x3b # CHECK: floor.l.d $f2, $f4
309
310 0x54 0x65 0x0b 0x3b # CHECK: floor.w.s $f3, $f5
311
312 0x54 0x44 0x4b 0x3b # CHECK: floor.w.d $f2, $f4
313
314 0x54 0x65 0x13 0x3b # CHECK: ceil.l.s $f3, $f5
315
316 0x54 0x44 0x53 0x3b # CHECK: ceil.l.d $f2, $f4
317
318 0x54 0x65 0x1b 0x3b # CHECK: ceil.w.s $f3, $f5
319
320 0x54 0x44 0x5b 0x3b # CHECK: ceil.w.d $f2, $f4
321
322 0x54 0x65 0x23 0x3b # CHECK: trunc.l.s $f3, $f5
323
324 0x54 0x44 0x63 0x3b # CHECK: trunc.l.d $f2, $f4
325
326 0x54 0x65 0x2b 0x3b # CHECK: trunc.w.s $f3, $f5
327
328 0x54 0x44 0x6b 0x3b # CHECK: trunc.w.d $f2, $f4
329
330 0x54 0x65 0x0a 0x3b # CHECK: sqrt.s $f3, $f5
331
332 0x54 0x44 0x4a 0x3b # CHECK: sqrt.d $f2, $f4
333
334 0x54 0x65 0x02 0x3b # CHECK: rsqrt.s $f3, $f5
335
336 0x54 0x44 0x42 0x3b # CHECK: rsqrt.d $f2, $f4
337
338 0x65 0x88 # CHECK: lw $3, 32($gp)
339
340 0x48 0x66 # CHECK: lw $3, 24($sp)
341
342 0x6a 0x12 # CHECK: lw16 $4, 8($17)
343
344 0x29 0x82 # CHECK: lhu16 $3, 4($16)
345
346 0x09 0x94 # CHECK: lbu16 $3, 4($17)
347
348 0x09 0x9f # CHECK: lbu16 $3, -1($17)
349
350 0x04 0xcc # CHECK: addu16 $6, $17, $4
351
352 0x44 0x21 # CHECK: and16 $16, $2
353
354 0x2e 0x56 # CHECK: andi16 $4, $5, 8
355
356 0x46 0x70 # CHECK: not16 $4, $7
357
358 0x45 0xf9 # CHECK: or16 $3, $7
359
360 0x25 0xe0 # CHECK: sll16 $3, $6, 8
361
362 0x25 0xe1 # CHECK: srl16 $3, $6, 8
363
364 0x60 0x25 0xa6 0x08 # CHECK: cachee 1, 8($5)
365
366 0x60 0x25 0xa4 0x08 # CHECK: prefe 1, 8($5)
367
368 0x01 0x28 0x00 0x3c # CHECK: teq $8, $9
369
370 0x00 0xe5 0xf0 0x3c # CHECK: teq $5, $7, 15
371
372 0x01 0x47 0x02 0x3c # CHECK: tge $7, $10
373
374 0x02 0x67 0xf2 0x3c # CHECK: tge $7, $19, 15
375
376 0x03 0x96 0x04 0x3c # CHECK: tgeu $22, $gp
377
378 0x01 0xd4 0xf4 0x3c # CHECK: tgeu $20, $14, 15
379
380 0x01 0xaf 0x08 0x3c # CHECK: tlt $15, $13
381
382 0x02 0x62 0xf8 0x3c # CHECK: tlt $2, $19, 15
383
384 0x02 0x0b 0x0a 0x3c # CHECK: tltu $11, $16
385
386 0x03 0xb0 0xfa 0x3c # CHECK: tltu $16, $sp, 15
387
388 0x02 0x26 0x0c 0x3c # CHECK: tne $6, $17
389
390 0x01 0x07 0xfc 0x3c # CHECK: tne $7, $8, 15
0 # RUN: llvm-mc --disassemble %s -triple=mips-unknown-linux -mcpu=mips64r6 -mattr=micromips | FileCheck %s
1
2 0x6f 0x83 # CHECK: addiur1sp $7, 4
3 0x6f 0x7e # CHECK: addiur2 $6, $7, -1
4 0x6f 0x76 # CHECK: addiur2 $6, $7, 12
5 0x4c 0xfc # CHECK: addius5 $7, -2
6 0x4f 0xff # CHECK: addiusp -1028
7 0x4f 0xfd # CHECK: addiusp -1032
8 0x4c 0x01 # CHECK: addiusp 1024
9 0x4c 0x03 # CHECK: addiusp 1028
10 0x4f 0xf9 # CHECK: addiusp -16
11 0xcc 0x42 # CHECK: bc16 132
12 0x8f 0x0a # CHECK: beqzc16 $6, 20
13 0xaf 0x0a # CHECK: bnezc16 $6, 20
14 0x65 0x88 # CHECK: lw $3, 32($gp)
15 0x48 0x66 # CHECK: lw $3, 24($sp)
16 0x6a 0x12 # CHECK: lw16 $4, 8($17)
17 0x29 0x82 # CHECK: lhu16 $3, 4($16)
18 0x09 0x94 # CHECK: lbu16 $3, 4($17)
19 0x09 0x9f # CHECK: lbu16 $3, -1($17)
20 0x45 0x2b # CHECK: jalr $9
21 0x45 0x23 # CHECK: jrc16 $9
22 0x44 0xb3 # CHECK: jrcaddiusp 20
23 0xf0 0x64 0x00 0x05 # CHECK: daui $3, $4, 5
24 0x42 0x23 0x00 0x04 # CHECK: dahi $3, 4
25 0x42 0x03 0x00 0x04 # CHECK: dati $3, 4
26 0x59 0x26 0x30 0xec # CHECK: dext $9, $6, 3, 7
27 0x59 0x26 0x30 0xe4 # CHECK: dextm $9, $6, 3, 7
28 0x59 0x26 0x30 0xd4 # CHECK: dextu $9, $6, 3, 7
29 0x58 0x43 0x25 0x1c # CHECK: dalign $4, $2, $3, 5
30 0x58 0x64 0x29 0x18 # CHECK: ddiv $3, $4, $5
31 0x58 0x64 0x29 0x58 # CHECK: dmod $3, $4, $5
32 0x58 0x64 0x29 0x98 # CHECK: ddivu $3, $4, $5
33 0x58 0x64 0x29 0xd8 # CHECK: dmodu $3, $4, $5
34 0x54 0xa4 0x18 0x30 # CHECK: add.s $f3, $f4, $f5
35 0x54 0xc4 0x11 0x30 # CHECK: add.d $f2, $f4, $f6
36 0x54 0xa4 0x18 0x70 # CHECK: sub.s $f3, $f4, $f5
37 0x54 0xc4 0x11 0x70 # CHECK: sub.d $f2, $f4, $f6
38 0x54 0xa4 0x18 0xb0 # CHECK: mul.s $f3, $f4, $f5
39 0x54 0xc4 0x11 0xb0 # CHECK: mul.d $f2, $f4, $f6
40 0x54 0xa4 0x18 0xf0 # CHECK: div.s $f3, $f4, $f5
41 0x54 0xc4 0x11 0xf0 # CHECK: div.d $f2, $f4, $f6
42 0x54 0xa4 0x19 0xb8 # CHECK: maddf.s $f3, $f4, $f5
43 0x54 0xa4 0x1b 0xb8 # CHECK: maddf.d $f3, $f4, $f5
44 0x54 0xa4 0x19 0xf8 # CHECK: msubf.s $f3, $f4, $f5
45 0x54 0xa4 0x1b 0xf8 # CHECK: msubf.d $f3, $f4, $f5
46 0x54 0xc7 0x00 0x7b # CHECK: mov.s $f6, $f7
47 0x54 0x86 0x20 0x7b # CHECK: mov.d $f4, $f6
48 0x54 0xc7 0x0b 0x7b # CHECK: neg.s $f6, $f7
49 0x54 0x86 0x2b 0x7b # CHECK: neg.d $f4, $f6
50 0x54 0x64 0x28 0x0b # CHECK: max.s $f5, $f4, $f3
51 0x54 0x64 0x2a 0x0b # CHECK: max.d $f5, $f4, $f3
52 0x54 0x64 0x28 0x2b # CHECK: maxa.s $f5, $f4, $f3
53 0x54 0x64 0x2a 0x2b # CHECK: maxa.d $f5, $f4, $f3
54 0x54 0x64 0x28 0x03 # CHECK: min.s $f5, $f4, $f3
55 0x54 0x64 0x2a 0x03 # CHECK: min.d $f5, $f4, $f3
56 0x54 0x64 0x28 0x23 # CHECK: mina.s $f5, $f4, $f3
57 0x54 0x64 0x2a 0x23 # CHECK: mina.d $f5, $f4, $f3
58 0x54 0x83 0x10 0x05 # CHECK: cmp.af.s $f2, $f3, $f4
59 0x54 0x83 0x10 0x45 # CHECK: cmp.un.s $f2, $f3, $f4
60 0x54 0x83 0x10 0x85 # CHECK: cmp.eq.s $f2, $f3, $f4
61 0x54 0x83 0x10 0xc5 # CHECK: cmp.ueq.s $f2, $f3, $f4
62 0x54 0x83 0x11 0x05 # CHECK: cmp.lt.s $f2, $f3, $f4
63 0x54 0x83 0x11 0x45 # CHECK: cmp.ult.s $f2, $f3, $f4
64 0x54 0x83 0x11 0x85 # CHECK: cmp.le.s $f2, $f3, $f4
65 0x54 0x83 0x11 0xc5 # CHECK: cmp.ule.s $f2, $f3, $f4
66 0x54 0x83 0x12 0x05 # CHECK: cmp.saf.s $f2, $f3, $f4
67 0x54 0x83 0x12 0x45 # CHECK: cmp.sun.s $f2, $f3, $f4
68 0x54 0x83 0x12 0x85 # CHECK: cmp.seq.s $f2, $f3, $f4
69 0x54 0x83 0x12 0xc5 # CHECK: cmp.sueq.s $f2, $f3, $f4
70 0x54 0x83 0x13 0x05 # CHECK: cmp.slt.s $f2, $f3, $f4
71 0x54 0x83 0x13 0x45 # CHECK: cmp.sult.s $f2, $f3, $f4
72 0x54 0x83 0x13 0x85 # CHECK: cmp.sle.s $f2, $f3, $f4
73 0x54 0x83 0x13 0xc5 # CHECK: cmp.sule.s $f2, $f3, $f4
74 0x54 0x83 0x10 0x15 # CHECK: cmp.af.d $f2, $f3, $f4
75 0x54 0x83 0x10 0x55 # CHECK: cmp.un.d $f2, $f3, $f4
76 0x54 0x83 0x10 0x95 # CHECK: cmp.eq.d $f2, $f3, $f4
77 0x54 0x83 0x10 0xd5 # CHECK: cmp.ueq.d $f2, $f3, $f4
78 0x54 0x83 0x11 0x15 # CHECK: cmp.lt.d $f2, $f3, $f4
79 0x54 0x83 0x11 0x55 # CHECK: cmp.ult.d $f2, $f3, $f4
80 0x54 0x83 0x11 0x95 # CHECK: cmp.le.d $f2, $f3, $f4
81 0x54 0x83 0x11 0xd5 # CHECK: cmp.ule.d $f2, $f3, $f4
82 0x54 0x83 0x12 0x15 # CHECK: cmp.saf.d $f2, $f3, $f4
83 0x54 0x83 0x12 0x55 # CHECK: cmp.sun.d $f2, $f3, $f4
84 0x54 0x83 0x12 0x95 # CHECK: cmp.seq.d $f2, $f3, $f4
85 0x54 0x83 0x12 0xd5 # CHECK: cmp.sueq.d $f2, $f3, $f4
86 0x54 0x83 0x13 0x15 # CHECK: cmp.slt.d $f2, $f3, $f4
87 0x54 0x83 0x13 0x55 # CHECK: cmp.sult.d $f2, $f3, $f4
88 0x54 0x83 0x13 0x95 # CHECK: cmp.sle.d $f2, $f3, $f4
89 0x54 0x83 0x13 0xd5 # CHECK: cmp.sule.d $f2, $f3, $f4
90 0x54 0x64 0x01 0x3b # CHECK: cvt.l.s $f3, $f4
91 0x54 0x64 0x41 0x3b # CHECK: cvt.l.d $f3, $f4
92 0x54 0x64 0x09 0x3b # CHECK: cvt.w.s $f3, $f4
93 0x54 0x64 0x49 0x3b # CHECK: cvt.w.d $f3, $f4
94 0x54 0x44 0x13 0x7b # CHECK: cvt.d.s $f2, $f4
95 0x54 0x44 0x33 0x7b # CHECK: cvt.d.w $f2, $f4
96 0x54 0x44 0x53 0x7b # CHECK: cvt.d.l $f2, $f4
97 0x54 0x44 0x1b 0x7b # CHECK: cvt.s.d $f2, $f4
98 0x54 0x64 0x3b 0x7b # CHECK: cvt.s.w $f3, $f4
99 0x54 0x64 0x5b 0x7b # CHECK: cvt.s.l $f3, $f4
100 0x54 0x65 0x03 0x7b # CHECK: abs.s $f3, $f5
101 0x54 0x44 0x23 0x7b # CHECK: abs.d $f2, $f4
102 0x54 0x65 0x03 0x3b # CHECK: floor.l.s $f3, $f5
103 0x54 0x44 0x43 0x3b # CHECK: floor.l.d $f2, $f4
104 0x54 0x65 0x0b 0x3b # CHECK: floor.w.s $f3, $f5
105 0x54 0x44 0x4b 0x3b # CHECK: floor.w.d $f2, $f4
106 0x54 0x65 0x13 0x3b # CHECK: ceil.l.s $f3, $f5
107 0x54 0x44 0x53 0x3b # CHECK: ceil.l.d $f2, $f4
108 0x54 0x65 0x1b 0x3b # CHECK: ceil.w.s $f3, $f5
109 0x54 0x44 0x5b 0x3b # CHECK: ceil.w.d $f2, $f4
110 0x54 0x65 0x23 0x3b # CHECK: trunc.l.s $f3, $f5
111 0x54 0x44 0x63 0x3b # CHECK: trunc.l.d $f2, $f4
112 0x54 0x65 0x2b 0x3b # CHECK: trunc.w.s $f3, $f5
113 0x54 0x44 0x6b 0x3b # CHECK: trunc.w.d $f2, $f4
114 0x54 0x65 0x0a 0x3b # CHECK: sqrt.s $f3, $f5
115 0x54 0x44 0x4a 0x3b # CHECK: sqrt.d $f2, $f4
116 0x54 0x65 0x02 0x3b # CHECK: rsqrt.s $f3, $f5
117 0x54 0x44 0x42 0x3b # CHECK: rsqrt.d $f2, $f4
118 0x01 0x28 0x00 0x3c # CHECK: teq $8, $9
119 0x00 0xe5 0xf0 0x3c # CHECK: teq $5, $7, 15
120 0x01 0x47 0x02 0x3c # CHECK: tge $7, $10
121 0x02 0x67 0xf2 0x3c # CHECK: tge $7, $19, 15
122 0x03 0x96 0x04 0x3c # CHECK: tgeu $22, $gp
123 0x01 0xd4 0xf4 0x3c # CHECK: tgeu $20, $14, 15
124 0x01 0xaf 0x08 0x3c # CHECK: tlt $15, $13
125 0x02 0x62 0xf8 0x3c # CHECK: tlt $2, $19, 15
126 0x02 0x0b 0x0a 0x3c # CHECK: tltu $11, $16
127 0x03 0xb0 0xfa 0x3c # CHECK: tltu $16, $sp, 15
128 0x02 0x26 0x0c 0x3c # CHECK: tne $6, $17
129 0x01 0x07 0xfc 0x3c # CHECK: tne $7, $8, 15
130 0x60 0x25 0xa6 0x08 # CHECK: cachee 1, 8($5)
131 0x00 0x64 0xf1 0x7c # CHECK: wrpgpr $3, $4
132 0x00 0x64 0x7b 0x3c # CHECK: wsbh $3, $4
+0
-263
test/MC/Disassembler/Mips/micromips64r6.txt less more
None # RUN: llvm-mc --disassemble %s -triple=mips-unknown-linux -mcpu=mips64r6 -mattr=micromips | FileCheck %s
1
2 0x6f 0x83 # CHECK: addiur1sp $7, 4
3
4 0x6f 0x7e # CHECK: addiur2 $6, $7, -1
5
6 0x6f 0x76 # CHECK: addiur2 $6, $7, 12
7
8 0x4c 0xfc # CHECK: addius5 $7, -2
9
10 0x4f 0xff # CHECK: addiusp -1028
11
12 0x4f 0xfd # CHECK: addiusp -1032
13
14 0x4c 0x01 # CHECK: addiusp 1024
15
16 0x4c 0x03 # CHECK: addiusp 1028
17
18 0x4f 0xf9 # CHECK: addiusp -16
19
20 0xcc 0x42 # CHECK: bc16 132
21
22 0x8f 0x0a # CHECK: beqzc16 $6, 20
23
24 0xaf 0x0a # CHECK: bnezc16 $6, 20
25
26 0xf0 0x64 0x00 0x05 # CHECK: daui $3, $4, 5
27
28 0x42 0x23 0x00 0x04 # CHECK: dahi $3, 4
29
30 0x42 0x03 0x00 0x04 # CHECK: dati $3, 4
31
32 0x59 0x26 0x30 0xec # CHECK: dext $9, $6, 3, 7
33
34 0x59 0x26 0x30 0xe4 # CHECK: dextm $9, $6, 3, 7
35
36 0x59 0x26 0x30 0xd4 # CHECK: dextu $9, $6, 3, 7
37
38 0x58 0x43 0x25 0x1c # CHECK: dalign $4, $2, $3, 5
39
40 0x58 0x64 0x29 0x18 # CHECK: ddiv $3, $4, $5
41
42 0x58 0x64 0x29 0x58 # CHECK: dmod $3, $4, $5
43
44 0x58 0x64 0x29 0x98 # CHECK: ddivu $3, $4, $5
45
46 0x58 0x64 0x29 0xd8 # CHECK: dmodu $3, $4, $5
47
48 0x54 0xa4 0x18 0x30 # CHECK: add.s $f3, $f4, $f5
49
50 0x54 0xc4 0x11 0x30 # CHECK: add.d $f2, $f4, $f6
51
52 0x54 0xa4 0x18 0x70 # CHECK: sub.s $f3, $f4, $f5
53
54 0x54 0xc4 0x11 0x70 # CHECK: sub.d $f2, $f4, $f6
55
56 0x54 0xa4 0x18 0xb0 # CHECK: mul.s $f3, $f4, $f5
57
58 0x54 0xc4 0x11 0xb0 # CHECK: mul.d $f2, $f4, $f6
59
60 0x54 0xa4 0x18 0xf0 # CHECK: div.s $f3, $f4, $f5
61
62 0x54 0xc4 0x11 0xf0 # CHECK: div.d $f2, $f4, $f6
63
64 0x54 0xa4 0x19 0xb8 # CHECK: maddf.s $f3, $f4, $f5
65
66 0x54 0xa4 0x1b 0xb8 # CHECK: maddf.d $f3, $f4, $f5
67
68 0x54 0xa4 0x19 0xf8 # CHECK: msubf.s $f3, $f4, $f5
69
70 0x54 0xa4 0x1b 0xf8 # CHECK: msubf.d $f3, $f4, $f5
71
72 0x54,0xc7,0x00,0x7b # CHECK: mov.s $f6, $f7
73
74 0x54,0x86,0x20,0x7b # CHECK: mov.d $f4, $f6
75
76 0x54,0xc7,0x0b,0x7b # CHECK: neg.s $f6, $f7
77
78 0x54,0x86,0x2b,0x7b # CHECK: neg.d $f4, $f6
79
80 0x54 0x64 0x28 0x0b # CHECK: max.s $f5, $f4, $f3
81
82 0x54 0x64 0x2a 0x0b # CHECK: max.d $f5, $f4, $f3
83
84 0x54 0x64 0x28 0x2b # CHECK: maxa.s $f5, $f4, $f3
85
86 0x54 0x64 0x2a 0x2b # CHECK: maxa.d $f5, $f4, $f3
87
88 0x54 0x64 0x28 0x03 # CHECK: min.s $f5, $f4, $f3
89
90 0x54 0x64 0x2a 0x03 # CHECK: min.d $f5, $f4, $f3
91
92 0x54 0x64 0x28 0x23 # CHECK: mina.s $f5, $f4, $f3
93
94 0x54 0x64 0x2a 0x23 # CHECK: mina.d $f5, $f4, $f3
95
96 0x54 0x83 0x10 0x05 # CHECK: cmp.af.s $f2, $f3, $f4
97
98 0x54 0x83 0x10 0x45 # CHECK: cmp.un.s $f2, $f3, $f4
99
100 0x54 0x83 0x10 0x85 # CHECK: cmp.eq.s $f2, $f3, $f4
101
102 0x54 0x83 0x10 0xc5 # CHECK: cmp.ueq.s $f2, $f3, $f4
103
104 0x54 0x83 0x11 0x05 # CHECK: cmp.lt.s $f2, $f3, $f4
105
106 0x54 0x83 0x11 0x45 # CHECK: cmp.ult.s $f2, $f3, $f4
107
108 0x54 0x83 0x11 0x85 # CHECK: cmp.le.s $f2, $f3, $f4
109
110 0x54 0x83 0x11 0xc5 # CHECK: cmp.ule.s $f2, $f3, $f4
111
112 0x54 0x83 0x12 0x05 # CHECK: cmp.saf.s $f2, $f3, $f4
113
114 0x54 0x83 0x12 0x45 # CHECK: cmp.sun.s $f2, $f3, $f4
115
116 0x54 0x83 0x12 0x85 # CHECK: cmp.seq.s $f2, $f3, $f4
117
118 0x54 0x83 0x12 0xc5 # CHECK: cmp.sueq.s $f2, $f3, $f4
119
120 0x54 0x83 0x13 0x05 # CHECK: cmp.slt.s $f2, $f3, $f4
121
122 0x54 0x83 0x13 0x45 # CHECK: cmp.sult.s $f2, $f3, $f4
123
124 0x54 0x83 0x13 0x85 # CHECK: cmp.sle.s $f2, $f3, $f4
125
126 0x54 0x83 0x13 0xc5 # CHECK: cmp.sule.s $f2, $f3, $f4
127
128 0x54 0x83 0x10 0x15 # CHECK: cmp.af.d $f2, $f3, $f4
129
130 0x54 0x83 0x10 0x55 # CHECK: cmp.un.d $f2, $f3, $f4
131
132 0x54 0x83 0x10 0x95 # CHECK: cmp.eq.d $f2, $f3, $f4
133
134 0x54 0x83 0x10 0xd5 # CHECK: cmp.ueq.d $f2, $f3, $f4
135
136 0x54 0x83 0x11 0x15 # CHECK: cmp.lt.d $f2, $f3, $f4
137
138 0x54 0x83 0x11 0x55 # CHECK: cmp.ult.d $f2, $f3, $f4
139
140 0x54 0x83 0x11 0x95 # CHECK: cmp.le.d $f2, $f3, $f4
141
142 0x54 0x83 0x11 0xd5 # CHECK: cmp.ule.d $f2, $f3, $f4
143
144 0x54 0x83 0x12 0x15 # CHECK: cmp.saf.d $f2, $f3, $f4
145
146 0x54 0x83 0x12 0x55 # CHECK: cmp.sun.d $f2, $f3, $f4
147
148 0x54 0x83 0x12 0x95 # CHECK: cmp.seq.d $f2, $f3, $f4
149
150 0x54 0x83 0x12 0xd5 # CHECK: cmp.sueq.d $f2, $f3, $f4
151
152 0x54 0x83 0x13 0x15 # CHECK: cmp.slt.d $f2, $f3, $f4
153
154 0x54 0x83 0x13 0x55 # CHECK: cmp.sult.d $f2, $f3, $f4
155
156 0x54 0x83 0x13 0x95 # CHECK: cmp.sle.d $f2, $f3, $f4
157
158 0x54 0x83 0x13 0xd5 # CHECK: cmp.sule.d $f2, $f3, $f4
159
160 0x54 0x64 0x01 0x3b # CHECK: cvt.l.s $f3, $f4
161
162 0x54 0x64 0x41 0x3b # CHECK: cvt.l.d $f3, $f4
163
164 0x54 0x64 0x09 0x3b # CHECK: cvt.w.s $f3, $f4
165
166 0x54 0x64 0x49 0x3b # CHECK: cvt.w.d $f3, $f4
167
168 0x54 0x44 0x13 0x7b # CHECK: cvt.d.s $f2, $f4
169
170 0x54 0x44 0x33 0x7b # CHECK: cvt.d.w $f2, $f4
171
172 0x54 0x44 0x53 0x7b # CHECK: cvt.d.l $f2, $f4
173
174 0x54,0x44,0x1b,0x7b # CHECK: cvt.s.d $f2, $f4
175
176 0x54,0x64,0x3b,0x7b # CHECK: cvt.s.w $f3, $f4
177
178 0x54,0x64,0x5b,0x7b # CHECK: cvt.s.l $f3, $f4
179
180 0x54 0x65 0x03 0x7b # CHECK: abs.s $f3, $f5
181
182 0x54 0x44 0x23 0x7b # CHECK: abs.d $f2, $f4
183
184 0x54 0x65 0x03 0x3b # CHECK: floor.l.s $f3, $f5
185
186 0x54 0x44 0x43 0x3b # CHECK: floor.l.d $f2, $f4
187
188 0x54 0x65 0x0b 0x3b # CHECK: floor.w.s $f3, $f5
189
190 0x54 0x44 0x4b 0x3b # CHECK: floor.w.d $f2, $f4
191
192 0x54 0x65 0x13 0x3b # CHECK: ceil.l.s $f3, $f5
193
194 0x54 0x44 0x53 0x3b # CHECK: ceil.l.d $f2, $f4
195
196 0x54 0x65 0x1b 0x3b # CHECK: ceil.w.s $f3, $f5
197
198 0x54 0x44 0x5b 0x3b # CHECK: ceil.w.d $f2, $f4
199
200 0x54 0x65 0x23 0x3b # CHECK: trunc.l.s $f3, $f5
201
202 0x54 0x44 0x63 0x3b # CHECK: trunc.l.d $f2, $f4
203
204 0x54 0x65 0x2b 0x3b # CHECK: trunc.w.s $f3, $f5
205
206 0x54 0x44 0x6b 0x3b # CHECK: trunc.w.d $f2, $f4
207
208 0x54 0x65 0x0a 0x3b # CHECK: sqrt.s $f3, $f5
209
210 0x54 0x44 0x4a 0x3b # CHECK: sqrt.d $f2, $f4
211
212 0x54 0x65 0x02 0x3b # CHECK: rsqrt.s $f3, $f5
213
214 0x54 0x44 0x42 0x3b # CHECK: rsqrt.d $f2, $f4
215
216 0x65 0x88 # CHECK: lw $3, 32($gp)
217
218 0x48 0x66 # CHECK: lw $3, 24($sp)
219
220 0x6a 0x12 # CHECK: lw16 $4, 8($17)
221
222 0x29 0x82 # CHECK: lhu16 $3, 4($16)
223
224 0x09 0x94 # CHECK: lbu16 $3, 4($17)
225
226 0x09 0x9f # CHECK: lbu16 $3, -1($17)
227
228 0x01 0x28 0x00 0x3c # CHECK: teq $8, $9
229
230 0x00 0xe5 0xf0 0x3c # CHECK: teq $5, $7, 15
231
232 0x01 0x47 0x02 0x3c # CHECK: tge $7, $10
233
234 0x02 0x67 0xf2 0x3c # CHECK: tge $7, $19, 15
235
236 0x03 0x96 0x04 0x3c # CHECK: tgeu $22, $gp
237
238 0x01 0xd4 0xf4 0x3c # CHECK: tgeu $20, $14, 15
239
240 0x01 0xaf 0x08 0x3c # CHECK: tlt $15, $13
241
242 0x02 0x62 0xf8 0x3c # CHECK: tlt $2, $19, 15
243
244 0x02 0x0b 0x0a 0x3c # CHECK: tltu $11, $16
245
246 0x03 0xb0 0xfa 0x3c # CHECK: tltu $16, $sp, 15
247
248 0x02 0x26 0x0c 0x3c # CHECK: tne $6, $17
249
250 0x01 0x07 0xfc 0x3c # CHECK: tne $7, $8, 15
251
252 0x60 0x25 0xa6 0x08 # CHECK: cachee 1, 8($5)
253
254 0x00 0x64 0xf1 0x7c # CHECK: wrpgpr $3, $4
255
256 0x00 0x64 0x7b 0x3c # CHECK: wsbh $3, $4
257
258 0x45 0x2b # CHECK: jalr $9
259
260 0x45 0x23 # CHECK: jrc16 $9
261
262 0x44 0xb3 # CHECK: jrcaddiusp 20
+0
-366
test/MC/Disassembler/Mips/micromips_le.txt less more
None # RUN: llvm-mc --disassemble %s -triple=mipsel-unknown-linux -mattr=micromips \
1 # RUN: | FileCheck %s
2
3 0xe6 0x00 0x10 0x49 # CHECK: add $9, $6, $7
4
5 0x26 0x11 0x67 0x45 # CHECK: addi $9, $6, 17767
6
7 0x26 0x31 0x67 0xc5 # CHECK: addiu $9, $6, -15001
8
9 0x26 0x11 0x67 0x45 # CHECK: addi $9, $6, 17767
10
11 0x26 0x31 0x67 0xc5 # CHECK: addiu $9, $6, -15001
12
13 0xf9 0x4f # CHECK: addiusp -16
14
15 0xff 0x4f # CHECK: addiusp -1028
16
17 0xfd 0x4f # CHECK: addiusp -1032
18
19 0x01 0x4c # CHECK: addiusp 1024
20
21 0x03 0x4c # CHECK: addiusp 1028
22
23 0xe6 0x00 0x50 0x49 # CHECK: addu $9, $6, $7
24
25 0x29 0x2c # CHECK: andi16 $16, $2, 31
26
27 0xe6 0x00 0x90 0x49 # CHECK: sub $9, $6, $7
28
29 0xa3 0x00 0xd0 0x21 # CHECK: subu $4, $3, $5
30
31 0xe0 0x00 0x90 0x31 # CHECK: sub $6, $zero, $7
32
33 0xe0 0x00 0xd0 0x31 # CHECK: subu $6, $zero, $7
34
35 0x08 0x00 0x50 0x39 # CHECK: addu $7, $8, $zero
36
37 0xa3 0x00 0x50 0x1b # CHECK: slt $3, $3, $5
38
39 0x63 0x90 0x67 0x00 # CHECK: slti $3, $3, 103
40
41 0x63 0x90 0x67 0x00 # CHECK: slti $3, $3, 103
42
43 0x63 0xb0 0x67 0x00 # CHECK: sltiu $3, $3, 103
44
45 0xa3 0x00 0x90 0x1b # CHECK: sltu $3, $3, $5
46
47 0xa9 0x41 0x67 0x45 # CHECK: lui $9, 17767
48
49 0xe6 0x00 0x50 0x4a # CHECK: and $9, $6, $7
50
51 0x26 0xd1 0x67 0x45 # CHECK: andi $9, $6, 17767
52
53 0x26 0xd1 0x67 0x45 # CHECK: andi $9, $6, 17767
54
55 0xa4 0x00 0x90 0x1a # CHECK: or $3, $4, $5
56
57 0x26 0x51 0x67 0x45 # CHECK: ori $9, $6, 17767
58
59 0xa3 0x00 0x10 0x1b # CHECK: xor $3, $3, $5
60
61 0x26 0x71 0x67 0x45 # CHECK: xori $9, $6, 17767
62
63 0x26 0x71 0x67 0x45 # CHECK: xori $9, $6, 17767
64
65 0xe6 0x00 0xd0 0x4a # CHECK: nor $9, $6, $7
66
67 0x08 0x00 0xd0 0x3a # CHECK: not $7, $8
68
69 0xe6 0x00 0x10 0x4a # CHECK: mul $9, $6, $7
70
71 0xe9 0x00 0x3c 0x8b # CHECK: mult $9, $7
72
73 0xe9 0x00 0x3c 0x9b # CHECK: multu $9, $7
74
75 0xe9 0x00 0x3c 0xab # CHECK: div $zero, $9, $7
76
77 0xe9 0x00 0x3c 0xbb # CHECK: divu $zero, $9, $7
78
79 0x83 0x00 0x00 0x38 # CHECK: sll $4, $3, 7
80
81 0x65 0x00 0x10 0x10 # CHECK: sllv $2, $3, $5
82
83 0x83 0x00 0x80 0x38 # CHECK: sra $4, $3, 7
84
85 0x65 0x00 0x90 0x10 # CHECK: srav $2, $3, $5
86
87 0x83 0x00 0x40 0x38 # CHECK: srl $4, $3, 7
88
89 0x65 0x00 0x50 0x10 # CHECK: srlv $2, $3, $5
90
91 0x26 0x01 0xc0 0x38 # CHECK: rotr $9, $6, 7
92
93 0xc7 0x00 0xd0 0x48 # CHECK: rotrv $9, $6, $7
94
95 0xa4 0x1c 0x08 0x00 # CHECK: lb $5, 8($4)
96
97 0xc4 0x14 0x08 0x00 # CHECK: lbu $6, 8($4)
98
99 0x44 0x3c 0x08 0x00 # CHECK: lh $2, 8($4)
100
101 0x82 0x34 0x08 0x00 # CHECK: lhu $4, 8($2)
102
103 0xc5 0xfc 0x04 0x00 # CHECK: lw $6, 4($5)
104
105 0xdd 0xfc 0x7b 0x00 # CHECK: lw $6, 123($sp)
106
107 0xa4 0x18 0x08 0x00 # CHECK: sb $5, 8($4)
108
109 0x44 0x38 0x08 0x00 # CHECK: sh $2, 8($4)
110
111 0xa6 0xf8 0x04 0x00 # CHECK: sw $5, 4($6)
112
113 0xbd 0xf8 0x7b 0x00 # CHECK: sw $5, 123($sp)
114
115 0x44 0x60 0x08 0xe0 # CHECK: lwu $2, 8($4)
116
117 0x85 0x60 0x10 0x00 # CHECK: lwl $4, 16($5)
118
119 0x85 0x60 0x10 0x10 # CHECK: lwr $4, 16($5)
120
121 0x85 0x60 0x10 0x80 # CHECK: swl $4, 16($5)
122
123 0x85 0x60 0x10 0x90 # CHECK: swr $4, 16($5)
124
125 0xe6 0x00 0x58 0x48 # CHECK: movz $9, $6, $7
126
127 0xe6 0x00 0x18 0x48 # CHECK: movn $9, $6, $7
128
129 0x26 0x55 0x7b 0x09 # CHECK: movt $9, $6, $fcc0
130
131 0x26 0x55 0x7b 0x01 # CHECK: movf $9, $6, $fcc0
132
133 0x06 0x00 0x7c 0x2d # CHECK: mthi $6
134
135 0x06 0x00 0x7c 0x0d # CHECK: mfhi $6
136
137 0x06 0x00 0x7c 0x3d # CHECK: mtlo $6
138
139 0x06 0x00 0x7c 0x1d # CHECK: mflo $6
140
141 0xa4 0x00 0x3c 0xcb # CHECK: madd $4, $5
142
143 0xa4 0x00 0x3c 0xdb # CHECK: maddu $4, $5
144
145 0xa4 0x00 0x3c 0xeb # CHECK: msub $4, $5
146
147 0xa4 0x00 0x3c 0xfb # CHECK: msubu $4, $5
148
149 0x26 0x01 0x3c 0x5b # CHECK: clz $9, $6
150
151 0x26 0x01 0x3c 0x4b # CHECK: clo $9, $6
152
153 0x26 0x01 0x3c 0x2b # CHECK: seb $9, $6
154
155 0x26 0x01 0x3c 0x3b # CHECK: seh $9, $6
156
157 0x26 0x01 0x3c 0x7b # CHECK: wsbh $9, $6
158
159 0x26 0x01 0xec 0x30 # CHECK: ext $9, $6, 3, 7
160
161 0x26 0x01 0xcc 0x48 # CHECK: ins $9, $6, 3, 7
162
163 0x00 0xd4 0x98 0x02 # CHECK: j 1328
164
165 0x00 0xf4 0x98 0x02 # CHECK: jal 1328
166
167 0xe6 0x03 0x3c 0x0f # CHECK: jalr $ra, $6
168
169 0x07 0x00 0x3c 0x0f # CHECK: jr $7
170
171 0x05 0x47 # CHECK: jraddiusp 20
172
173 0xc9 0x94 0x9a 0x02 # CHECK: beq $9, $6, 1332
174
175 0x46 0x40 0x9a 0x02 # CHECK: bgez $6, 1332
176
177 0x66 0x40 0x9a 0x02 # CHECK: bgezal $6, 1332
178
179 0x26 0x40 0x9a 0x02 # CHECK: bltzal $6, 1332
180
181 0xc6 0x40 0x9a 0x02 # CHECK: bgtz $6, 1332
182
183 0x86 0x40 0x9a 0x02 # CHECK: blez $6, 1332
184
185 0xc9 0xb4 0x9a 0x02 # CHECK: bne $9, $6, 1332
186
187 0x06 0x40 0x9a 0x02 # CHECK: bltz $6, 1332
188
189 0x28 0x01 0x3c 0x00 # CHECK: teq $8, $9
190
191 0x28 0x01 0x3c 0x02 # CHECK: tge $8, $9
192
193 0x28 0x01 0x3c 0x04 # CHECK: tgeu $8, $9
194
195 0x28 0x01 0x3c 0x08 # CHECK: tlt $8, $9
196
197 0x28 0x01 0x3c 0x0a # CHECK: tltu $8, $9
198
199 0x28 0x01 0x3c 0x0c # CHECK: tne $8, $9
200
201 0xc9 0x41 0x67 0x45 # CHECK: teqi $9, 17767
202
203 0x29 0x41 0x67 0x45 # CHECK: tgei $9, 17767
204
205 0x69 0x41 0x67 0x45 # CHECK: tgeiu $9, 17767
206
207 0x09 0x41 0x67 0x45 # CHECK: tlti $9, 17767
208
209 0x49 0x41 0x67 0x45 # CHECK: tltiu $9, 17767
210
211 0x89 0x41 0x67 0x45 # CHECK: tnei $9, 17767
212
213 0x25 0x20 0x08 0x60 # CHECK: cache 1, 8($5)
214
215 0x25 0x60 0x08 0x20 # CHECK: pref 1, 8($5)
216
217 0x00 0x00 0x00 0x08 # CHECK: ssnop
218
219 0x00 0x00 0x00 0x18 # CHECK: ehb
220
221 0x00 0x00 0x00 0x28 # CHECK: pause
222
223 0x44 0x60 0x08 0x30 # CHECK: ll $2, 8($4)
224
225 0x44 0x60 0x08 0xb0 # CHECK: sc $2, 8($4)
226
227 0x64 0x00 0x18 0x11 # CHECK: lwxs $2, $3($4)
228
229 0x66 0x42 0x9a 0x02 # CHECK: bgezals $6, 1332
230
231 0x26 0x42 0x9a 0x02 # CHECK: bltzals $6, 1332
232
233 0xe9 0x40 0x9a 0x02 # CHECK: beqzc $9, 1332
234
235 0xa9 0x40 0x9a 0x02 # CHECK: bnezc $9, 1332
236
237 0x00 0x74 0x98 0x02 # CHECK: jals 1328
238
239 0xe6 0x03 0x3c 0x4f # CHECK: jalrs $ra, $6
240
241 0x44 0x20 0x08 0x50 # CHECK: lwm32 $16, $17, 8($4)
242
243 0x3b 0x21 0x84 0x59 # CHECK: lwm32 $16, $17, $18, $19, $20, $21, $22, $23, $fp, -1660($27)
244
245 0x44 0x20 0x08 0xd0 # CHECK: swm32 $16, $17, 8($4)
246
247 0x04 0x22 0x08 0x90 # CHECK: swp $16, 8($4)
248
249 0x04 0x22 0x08 0x10 # CHECK: lwp $16, 8($4)
250
251 0x00 0x00 0x00 0x00 # CHECK: nop
252
253 0x00 0x79 0x05 0x00 # CHECK: addiupc $2, 20
254
255 0xbf 0x7b 0xff 0xff # CHECK: addiupc $7, 16777212
256
257 0xc0 0x7b 0x00 0x00 # CHECK: addiupc $7, -16777216
258
259 0x42 0x07 # CHECK: addu16 $6, $17, $4
260
261 0xb1 0x06 # CHECK: subu16 $5, $16, $3
262
263 0x82 0x44 # CHECK: and16 $16, $2
264
265 0x0b 0x44 # CHECK: not16 $17, $3
266
267 0xc4 0x44 # CHECK: or16 $16, $4
268
269 0x4d 0x44 # CHECK: xor16 $17, $5
270
271 0x8a 0x25 # CHECK: sll16 $3, $16, 5
272
273 0x1d 0x26 # CHECK: srl16 $4, $17, 6
274
275 0x94 0x09 # CHECK: lbu16 $3, 4($17)
276
277 0x8f 0x09 # CHECK: lbu16 $3, -1($16)
278
279 0x82 0x29 # CHECK: lhu16 $3, 4($16)
280
281 0x12 0x6a # CHECK: lw16 $4, 8($17)
282
283 0x84 0x89 # CHECK: sb16 $3, 4($16)
284
285 0x14 0xaa # CHECK: sh16 $4, 8($17)
286
287 0x11 0xea # CHECK: sw16 $4, 4($17)
288
289 0x11 0xe8 # CHECK: sw16 $zero, 4($17)
290
291 0x09 0x46 # CHECK: mfhi $9
292
293 0x49 0x46 # CHECK: mflo $9
294
295 0x21 0x0f # CHECK: move $25, $1
296
297 0xa9 0x45 # CHECK: jrc $9
298
299 0xc9 0x45 # CHECK: jalr $9
300
301 0xe9 0x45 # CHECK: jalrs16 $9
302
303 0x89 0x45 # CHECK: jr16 $9
304
305 0xff 0xed # CHECK: li16 $3, -1
306
307 0xfe 0xed # CHECK: li16 $3, 126
308
309 0x83 0x6f # CHECK: addiur1sp $7, 4
310
311 0x7e 0x6f # CHECK: addiur2 $6, $7, -1
312
313 0x76 0x6f # CHECK: addiur2 $6, $7, 12
314
315 0xfc 0x4c # CHECK: addius5 $7, -2
316
317 0x00 0x0c # CHECK: nop
318
319 0x68 0x48 # CHECK: lw $3, 32($sp)
320
321 0x9f 0xc8 # CHECK: sw $4, 124($sp)
322
323 0x0a 0x8f # CHECK: beqz16 $6, 20
324
325 0x0a 0xaf # CHECK: bnez16 $6, 20
326
327 0x42 0xcc # CHECK: b16 132
328
329 0x88 0x65 # CHECK: lw $3, 32($gp)
330
331 0x12 0x45 # CHECK: lwm16 $16, $17, $ra, 8($sp)
332
333 0x52 0x45 # CHECK: swm16 $16, $17, $ra, 8($sp)
334
335 0x88 0x46 # CHECK: break16 8
336
337 0xce 0x46 # CHECK: sdbbp16 14
338
339 0x34 0x84 # CHECK: movep $5, $6, $2, $3
340
341 0x00 0x00 0x7c 0x57 # CHECK: ei
342
343 0x0a 0x00 0x7c 0x57 # CHECK: ei $10
344
345 0x25 0x60 0x08 0xa6 # CHECK: cachee 1, 8($5)
346
347 0x25 0x60 0x08 0xa4 # CHECK: prefe 1, 8($5)
348
349 0x65 0x54 0xa0 0x09 # CHECK: prefx 1, $3($5)
350
351 0x82 0x60 0x08 0x62 # CHECK: lhue $4, 8($2)
352
353 0x82 0x60 0x08 0x68 # CHECK: lbe $4, 8($2)
354
355 0x82 0x60 0x08 0x60 # CHECK: lbue $4, 8($2)
356
357 0x82 0x60 0x08 0x6a # CHECK: lhe $4, 8($2)
358
359 0x82 0x60 0x08 0x6e # CHECK: lwe $4, 8($2)
360
361 0xa4 0x60 0x08 0xa8 # CHECK: sbe $5, 8($4)
362
363 0xa4 0x60 0x08 0xaa # CHECK: she $5, 8($4)
364
365 0xa4 0x60 0x08 0xae # CHECK: swe $5, 8($4)
8888 0x00 0x00 0xc7 0x70 # CHECK: madd $6, $7
8989 0x01 0x00 0xc7 0x70 # CHECK: maddu $6, $7
9090 0x01 0x78 0x08 0x40 # CHECK: mfc0 $8, $15, 1
91 0x04 0x80 0x08 0x40 # CHECK: mfc0 $8, $16, 4
9192 0x00 0x38 0x06 0x44 # CHECK: mfc1 $6, $f7
9293 0x10 0x28 0x00 0x00 # CHECK: mfhi $5
9394 0x12 0x28 0x00 0x00 # CHECK: mflo $5
9495 0x86 0x41 0x20 0x46 # CHECK: mov.d $f6, $f8
9596 0x86 0x39 0x00 0x46 # CHECK: mov.s $f6, $f7
97 0x25,0x38,0x00,0x01 # CHECK: move $7, $8
98 0x25,0x18,0x40,0x00 # CHECK: move $3, $2
99 0x01,0x18,0x5c,0x00 # CHECK: movf $3, $2, $fcc7
100 0x11,0x11,0x3c,0x46 # CHECK: movf.d $f4, $f2, $fcc7
101 0x11,0x11,0x1c,0x46 # CHECK: movf.s $f4, $f2, $fcc7
102 0x01,0x18,0x5d,0x00 # CHECK: movt $3, $2, $fcc7
103 0x11,0x11,0x3d,0x46 # CHECK: movt.d $f4, $f2, $fcc7
104 0x11,0x11,0x1d,0x46 # CHECK: movt.s $f4, $f2, $fcc7
96105 0x04 0x00 0xc7 0x70 # CHECK: msub $6, $7
97106 0x05 0x00 0xc7 0x70 # CHECK: msubu $6, $7
98107 0x01 0x78 0x89 0x40 # CHECK: mtc0 $9, $15, 1
+0
-450
test/MC/Disassembler/Mips/mips32_le.txt less more
None # RUN: llvm-mc --disassemble %s -triple=mipsel-unknown-linux | FileCheck %s
1 # CHECK: abs.d $f12, $f14
2 0x05 0x73 0x20 0x46
3
4 # CHECK: abs.s $f6, $f7
5 0x85 0x39 0x00 0x46
6
7 # CHECK: add $9, $6, $7
8 0x20 0x48 0xc7 0x00
9
10 # CHECK: add.d $f8, $f12, $f14
11 0x00 0x62 0x2e 0x46
12
13 # CHECK: add.s $f9, $f6, $f7
14 0x40 0x32 0x07 0x46
15
16 # CHECK: addi $9, $6, 17767
17 0x67 0x45 0xc9 0x20
18
19 # CHECK: addiu $9, $6, -15001
20 0x67 0xc5 0xc9 0x24
21
22 # CHECK: addu $9, $6, $7
23 0x21 0x48 0xc7 0x00
24
25 # CHECK: and $9, $6, $7
26 0x24 0x48 0xc7 0x00
27
28 # CHECK: andi $9, $6, 17767
29 0x67 0x45 0xc9 0x30
30
31 # CHECK: b 1332
32 0x4c 0x01 0x00 0x10
33
34 # CHECK: bc1f 1332
35 0x4c 0x01 0x00 0x45
36
37 # CHECK: bc1f $fcc7, 1332
38 0x4c 0x01 0x1c 0x45
39
40 # CHECK: bc1t 1332
41 0x4c 0x01 0x01 0x45
42
43 # CHECK: bc1t $fcc7, 1332
44 0x4c 0x01 0x1d 0x45
45
46 # CHECK: beq $9, $6, 1332
47 0x4c 0x01 0x26 0x11
48
49 # CHECK: bgez $6, 1332
50 0x4c 0x01 0xc1 0x04
51
52 # CHECK: bgezal $6, 1332
53 0x4c 0x01 0xd1 0x04
54
55 # CHECK: bgtz $6, 1332
56 0x4c 0x01 0xc0 0x1c
57
58 # CHECK: blez $6, 1332
59 0x4c 0x01 0xc0 0x18
60
61 # CHECK: bne $9, $6, 1332
62 0x4c 0x01 0x26 0x15
63
64 # CHECK: c.eq.d $f12, $f14
65 0x32 0x60 0x2e 0x46
66
67 # CHECK: c.eq.s $f6, $f7
68 0x32 0x30 0x07 0x46
69
70 # CHECK: c.f.d $f12, $f14
71 0x30 0x60 0x2e 0x46
72
73 # CHECK: c.f.s $f6, $f7
74 0x30 0x30 0x07 0x46
75
76 # CHECK: c.le.d $f12, $f14
77 0x3e 0x60 0x2e 0x46
78
79 # CHECK: c.le.s $f6, $f7
80 0x3e 0x30 0x07 0x46
81
82 # CHECK: c.lt.d $f12, $f14
83 0x3c 0x60 0x2e 0x46
84
85 # CHECK: c.lt.s $f6, $f7
86 0x3c 0x30 0x07 0x46
87
88 # CHECK: c.nge.d $f12, $f14
89 0x3d 0x60 0x2e 0x46
90
91 # CHECK: c.nge.s $f6, $f7
92 0x3d 0x30 0x07 0x46
93
94 # CHECK: c.ngl.d $f12, $f14
95 0x3b 0x60 0x2e 0x46
96
97 # CHECK: c.ngl.s $f6, $f7
98 0x3b 0x30 0x07 0x46
99
100 # CHECK: c.ngle.d $f12, $f14
101 0x39 0x60 0x2e 0x46
102
103 # CHECK: c.ngle.s $f6, $f7
104 0x39 0x30 0x07 0x46
105
106 # CHECK: c.ngt.d $f12, $f14
107 0x3f 0x60 0x2e 0x46
108
109 # CHECK: c.ngt.s $f6, $f7
110 0x3f 0x30 0x07 0x46
111
112 # CHECK: c.ole.d $f12, $f14
113 0x36 0x60 0x2e 0x46
114
115 # CHECK: c.ole.s $f6, $f7
116 0x36 0x30 0x07 0x46
117
118 # CHECK: c.olt.d $f12, $f14
119 0x34 0x60 0x2e 0x46
120
121 # CHECK: c.olt.s $f6, $f7
122 0x34 0x30 0x07 0x46
123
124 # CHECK: c.seq.d $f12, $f14
125 0x3a 0x60 0x2e 0x46
126
127 # CHECK: c.seq.s $f6, $f7
128 0x3a 0x30 0x07 0x46
129
130 # CHECK: c.sf.d $f12, $f14
131 0x38 0x60 0x2e 0x46
132
133 # CHECK: c.sf.s $f6, $f7
134 0x38 0x30 0x07 0x46
135
136 # CHECK: c.ueq.d $f12, $f14
137 0x33 0x60 0x2e 0x46
138
139 # CHECK: c.ueq.s $f28, $f18
140 0x33 0xe0 0x12 0x46
141
142 # CHECK: c.ule.d $f12, $f14
143 0x37 0x60 0x2e 0x46
144
145 # CHECK: c.ule.s $f6, $f7
146 0x37 0x30 0x07 0x46
147
148 # CHECK: c.ult.d $f12, $f14
149 0x35 0x60 0x2e 0x46
150
151 # CHECK: c.ult.s $f6, $f7
152 0x35 0x30 0x07 0x46
153
154 # CHECK: c.un.d $f12, $f14
155 0x31 0x60 0x2e 0x46
156
157 # CHECK: c.un.s $f6, $f7
158 0x31 0x30 0x07 0x46
159
160 # CHECK: ceil.w.d $f12, $f14
161 0x0e 0x73 0x20 0x46
162
163 # CHECK: ceil.w.s $f6, $f7
164 0x8e 0x39 0x00 0x46
165
166 # CHECK: cfc1 $6, $7
167 0x00 0x38 0x46 0x44
168
169 # CHECK: clo $6, $7
170 0x21 0x30 0xe6 0x70
171
172 # CHECK: clz $6, $7
173 0x20 0x30 0xe6 0x70
174
175 # CHECK: ctc1 $6, $7
176 0x00 0x38 0xc6 0x44
177
178 # CHECK: cvt.d.s $f6, $f7
179 0xa1 0x39 0x00 0x46
180
181 # CHECK: cvt.d.w $f12, $f14
182 0x21 0x73 0x80 0x46
183
184 # CHECK: cvt.s.d $f12, $f14
185 0x20 0x73 0x20 0x46
186
187 # CHECK: cvt.s.w $f6, $f7
188 0xa0 0x39 0x80 0x46
189
190 # CHECK: cvt.w.d $f12, $f14
191 0x24 0x73 0x20 0x46
192
193 # CHECK: cvt.w.s $f6, $f7
194 0xa4 0x39 0x00 0x46
195
196 # CHECK: floor.w.d $f12, $f14
197 0x0f 0x73 0x20 0x46
198
199 # CHECK: floor.w.s $f6, $f7
200 0x8f 0x39 0x00 0x46
201
202 # CHECK: j 1328
203 0x4c 0x01 0x00 0x08
204
205 # CHECK: jal 1328
206 0x4c 0x01 0x00 0x0c
207
208 # CHECK: jalx 1328
209 0x4c 0x01 0x00 0x74
210
211 # CHECK: jalr $7
212 0x09 0xf8 0xe0 0x00
213
214 # CHECK: jr $7
215 0x08 0x00 0xe0 0x00
216
217 # CHECK: lb $4, 9158($5)
218 0xc6 0x23 0xa4 0x80
219
220 # CHECK: lbu $4, 6($5)
221 0x06 0x00 0xa4 0x90
222
223 # CHECK: ldc1 $f9, 9158($7)
224 0xc6 0x23 0xe9 0xd4
225
226 # CHECK: lh $4, 12($5)
227 0x0c 0x00 0xa4 0x84
228
229 # CHECK: lh $4, 12($5)
230 0x0c 0x00 0xa4 0x84
231
232 # CHECK: ll $9, 9158($7)
233 0xc6 0x23 0xe9 0xc0
234
235 # CHECK: lui $6, 17767
236 0x67 0x45 0x06 0x3c
237
238 # CHECK: lw $4, 24($5)
239 0x18 0x00 0xa4 0x8c
240
241 # CHECK: lwc1 $f9, 9158($7)
242 0xc6 0x23 0xe9 0xc4
243
244 # CHECK: lwl $2, 3($4)
245 0x03 0x00 0x82 0x88
246
247 # CHECK: lwr $3, 16($5)
248 0x10 0x00 0xa3 0x98
249
250 # CHECK: madd $6, $7
251 0x00 0x00 0xc7 0x70
252
253 # CHECK: maddu $6, $7
254 0x01 0x00 0xc7 0x70
255
256 # CHECK: mfc0 $8, $16, 4
257 0x04 0x80 0x08 0x40
258
259 # CHECK: mfc1 $6, $f7
260 0x00 0x38 0x06 0x44
261
262 # CHECK: mfhi $5
263 0x10 0x28 0x00 0x00
264
265 # CHECK: mflo $5
266 0x12 0x28 0x00 0x00
267
268 # CHECK: mov.d $f6, $f8
269 0x86 0x41 0x20 0x46
270
271 # CHECK: mov.s $f6, $f7
272 0x86 0x39 0x00 0x46
273
274 # CHECK: move $7, $8
275 0x25,0x38,0x00,0x01
276
277 # CHECK: move $3, $2
278 0x25,0x18,0x40,0x00
279
280 # CHECK: movf $3, $2, $fcc7
281 0x01,0x18,0x5c,0x00
282
283 # CHECK: movf.d $f4, $f2, $fcc7
284 0x11,0x11,0x3c,0x46
285
286 # CHECK: movf.s $f4, $f2, $fcc7
287 0x11,0x11,0x1c,0x46
288
289 # CHECK: movt $3, $2, $fcc7
290 0x01,0x18,0x5d,0x00
291
292 # CHECK: movt.d $f4, $f2, $fcc7
293 0x11,0x11,0x3d,0x46
294
295 # CHECK: movt.s $f4, $f2, $fcc7
296 0x11,0x11,0x1d,0x46
297
298 # CHECK: msub $6, $7
299 0x04 0x00 0xc7 0x70
300
301 # CHECK: msubu $6, $7
302 0x05 0x00 0xc7 0x70
303
304 # CHECK: mtc0 $9, $15, 1
305 0x01 0x78 0x89 0x40
306
307 # CHECK: mtc1 $6, $f7
308 0x00 0x38 0x86 0x44
309
310 # CHECK: mthi $7
311 0x11 0x00 0xe0 0x00
312
313 # CHECK: mtlo $7
314 0x13 0x00 0xe0 0x00
315
316 # CHECK: mul.d $f8, $f12, $f14
317 0x02 0x62 0x2e 0x46
318
319 # CHECK: mul.s $f9, $f6, $f7
320 0x42 0x32 0x07 0x46
321
322 # CHECK: mul $9, $6, $7
323 0x02 0x48 0xc7 0x70
324
325 # CHECK: mult $3, $5
326 0x18 0x00 0x65 0x00
327
328 # CHECK: multu $3, $5
329 0x19 0x00 0x65 0x00
330
331 # CHECK: neg.d $f12, $f14
332 0x07 0x73 0x20 0x46
333
334 # CHECK: neg.s $f6, $f7
335 0x87 0x39 0x00 0x46
336
337 # CHECK: nop
338 0x00 0x00 0x00 0x00
339
340 # CHECK: nor $9, $6, $7
341 0x27 0x48 0xc7 0x00
342
343 # CHECK: or $3, $3, $5
344 0x25 0x18 0x65 0x00
345
346 # CHECK: ori $9, $6, 17767
347 0x67 0x45 0xc9 0x34
348
349 # CHECK: round.w.d $f12, $f14
350 0x0c 0x73 0x20 0x46
351
352 # CHECK: round.w.s $f6, $f7
353 0x8c 0x39 0x00 0x46
354
355 # CHECK: sb $4, 9158($5)
356 0xc6 0x23 0xa4 0xa0
357
358 # CHECK: sb $4, 6($5)
359 0x06 0x00 0xa4 0xa0
360
361 # CHECK: sc $9, 9158($7)
362 0xc6 0x23 0xe9 0xe0
363
364 # CHECK: sdc1 $f9, 9158($7)
365 0xc6 0x23 0xe9 0xf4
366
367 # CHECK: sh $4, 9158($5)
368 0xc6 0x23 0xa4 0xa4
369
370 # CHECK: sll $4, $3, 7
371 0xc0 0x21 0x03 0x00
372
373 # CHECK: sllv $2, $3, $5
374 0x04 0x10 0xa3 0x00
375
376 # CHECK: slt $3, $3, $5
377 0x2a 0x18 0x65 0x00
378
379 # CHECK: slti $3, $3, 103
380 0x67 0x00 0x63 0x28
381
382 # CHECK: sltiu $3, $3, 103
383 0x67 0x00 0x63 0x2c
384
385 # CHECK: sltu $3, $3, $5
386 0x2b 0x18 0x65 0x00
387
388 # CHECK: sqrt.d $f12, $f14
389 0x04 0x73 0x20 0x46
390
391 # CHECK: sqrt.s $f6, $f7
392 0x84 0x39 0x00 0x46
393
394 # CHECK: sra $4, $3, 7
395 0xc3 0x21 0x03 0x00
396
397 # CHECK: srav $2, $3, $5
398 0x07 0x10 0xa3 0x00
399
400 # CHECK: srl $4, $3, 7
401 0xc2 0x21 0x03 0x00
402
403 # CHECK: srlv $2, $3, $5
404 0x06 0x10 0xa3 0x00
405
406 # CHECK: sub.d $f8, $f12, $f14
407 0x01 0x62 0x2e 0x46
408
409 # CHECK: sub.s $f9, $f6, $f7
410 0x41 0x32 0x07 0x46
411
412 # CHECK: sub $9, $6, $7
413 0x22 0x48 0xc7 0x00
414
415 # CHECK: subu $4, $3, $5
416 0x23 0x20 0x65 0x00
417
418 # CHECK: sw $4, 24($5)
419 0x18 0x00 0xa4 0xac
420
421 # CHECK: swc1 $f9, 9158($7)
422 0xc6 0x23 0xe9 0xe4
423
424 # CHECK: swl $4, 16($5)
425 0x10 0x00 0xa4 0xa8
426
427 # CHECK: swr $6, 16($7)
428 0x10 0x00 0xe6 0xb8
429
430 # CHECK: sync 7
431 0xcf 0x01 0x00 0x00
432
433 # CHECK: trunc.w.d $f12, $f14
434 0x0d 0x73 0x20 0x46
435
436 # CHECK: trunc.w.s $f6, $f7
437 0x8d 0x39 0x00 0x46
438
439 # CHECK: xor $3, $3, $5
440 0x26 0x18 0x65 0x00
441
442 # CHECK: xori $9, $6, 17767
443 0x67 0x45 0xc9 0x38
444
445 # CHECK: .set push
446 # CHECK: .set mips32r2
447 # CHECK: rdhwr $5, $29
448 # CHECK: .set pop
449 0x3b 0xe8 0x05 0x7c
101101 0x60 0x98 0xf9 0x4f # CHECK: madd.s $f1, $f31, $f19, $f25
102102 0x01 0x00 0xc7 0x70 # CHECK: maddu $6, $7
103103 0x01 0x78 0x08 0x40 # CHECK: mfc0 $8, $15, 1
104 0x04 0x80 0x08 0x40 # CHECK: mfc0 $8, $16, 4
104105 0x00 0x38 0x06 0x44 # CHECK: mfc1 $6, $f7
105106 0x10 0x28 0x00 0x00 # CHECK: mfhi $5
106107 0x00 0xc0 0x7e 0x44 # CHECK: mfhc1 $fp, $f24
171172 0xa0 0x30 0x07 0x7c # CHECK: wsbh $6, $7
172173 0x26 0x18 0x65 0x00 # CHECK: xor $3, $3, $5
173174 0x67 0x45 0xc9 0x38 # CHECK: xori $9, $6, 17767
175 0x4c 0x1d 0x7f 0x06 # CHECK: synci 7500($19)
+0
-459
test/MC/Disassembler/Mips/mips32r2_le.txt less more
None # RUN: llvm-mc --disassemble %s -triple=mipsel-unknown-linux -mcpu=mips32r2 | FileCheck %s
1 # CHECK: abs.d $f12, $f14
2 0x05 0x73 0x20 0x46
3
4 # CHECK: abs.s $f6, $f7
5 0x85 0x39 0x00 0x46
6
7 # CHECK: add $9, $6, $7
8 0x20 0x48 0xc7 0x00
9
10 # CHECK: add.d $f8, $f12, $f14
11 0x00 0x62 0x2e 0x46
12
13 # CHECK: add.s $f9, $f6, $f7
14 0x40 0x32 0x07 0x46
15
16 # CHECK: addi $9, $6, 17767
17 0x67 0x45 0xc9 0x20
18
19 # CHECK: addiu $9, $6, -15001
20 0x67 0xc5 0xc9 0x24
21
22 # CHECK: addu $9, $6, $7
23 0x21 0x48 0xc7 0x00
24
25 # CHECK: and $9, $6, $7
26 0x24 0x48 0xc7 0x00
27
28 # CHECK: andi $9, $6, 17767
29 0x67 0x45 0xc9 0x30
30
31 # CHECK: b 1332
32 0x4c 0x01 0x00 0x10
33
34 # CHECK: bc1f 1332
35 0x4c 0x01 0x00 0x45
36
37 # CHECK: bc1f $fcc7, 1332
38 0x4c 0x01 0x1c 0x45
39
40 # CHECK: bc1t 1332
41 0x4c 0x01 0x01 0x45
42
43 # CHECK: bc1t $fcc7, 1332
44 0x4c 0x01 0x1d 0x45
45
46 # CHECK: beq $9, $6, 1332
47 0x4c 0x01 0x26 0x11
48
49 # CHECK: bgez $6, 1332
50 0x4c 0x01 0xc1 0x04
51
52 # CHECK: bgezal $6, 1332
53 0x4c 0x01 0xd1 0x04
54
55 # CHECK: bgtz $6, 1332
56 0x4c 0x01 0xc0 0x1c
57
58 # CHECK: blez $6, 1332
59 0x4c 0x01 0xc0 0x18
60
61 # CHECK: bne $9, $6, 1332
62 0x4c 0x01 0x26 0x15
63
64 # CHECK: c.eq.d $f12, $f14
65 0x32 0x60 0x2e 0x46
66
67 # CHECK: c.eq.s $f6, $f7
68 0x32 0x30 0x07 0x46
69
70 # CHECK: c.f.d $f12, $f14
71 0x30 0x60 0x2e 0x46
72
73 # CHECK: c.f.s $f6, $f7
74 0x30 0x30 0x07 0x46
75
76 # CHECK: c.le.d $f12, $f14
77 0x3e 0x60 0x2e 0x46
78
79 # CHECK: c.le.s $f6, $f7
80 0x3e 0x30 0x07 0x46
81
82 # CHECK: c.lt.d $f12, $f14
83 0x3c 0x60 0x2e 0x46
84
85 # CHECK: c.lt.s $f6, $f7
86 0x3c 0x30 0x07 0x46
87
88 # CHECK: c.nge.d $f12, $f14
89 0x3d 0x60 0x2e 0x46
90
91 # CHECK: c.nge.s $f6, $f7
92 0x3d 0x30 0x07 0x46
93
94 # CHECK: c.ngl.d $f12, $f14
95 0x3b 0x60 0x2e 0x46
96
97 # CHECK: c.ngl.s $f6, $f7
98 0x3b 0x30 0x07 0x46
99
100 # CHECK: c.ngle.d $f12, $f14
101 0x39 0x60 0x2e 0x46
102
103 # CHECK: c.ngle.s $f6, $f7
104 0x39 0x30 0x07 0x46
105
106 # CHECK: c.ngt.d $f12, $f14
107 0x3f 0x60 0x2e 0x46
108
109 # CHECK: c.ngt.s $f6, $f7
110 0x3f 0x30 0x07 0x46
111
112 # CHECK: c.ole.d $f12, $f14
113 0x36 0x60 0x2e 0x46
114
115 # CHECK: c.ole.s $f6, $f7
116 0x36 0x30 0x07 0x46
117
118 # CHECK: c.olt.d $f12, $f14
119 0x34 0x60 0x2e 0x46
120
121 # CHECK: c.olt.s $f6, $f7
122 0x34 0x30 0x07 0x46
123
124 # CHECK: c.seq.d $f12, $f14
125 0x3a 0x60 0x2e 0x46
126
127 # CHECK: c.seq.s $f6, $f7
128 0x3a 0x30 0x07 0x46
129
130 # CHECK: c.sf.d $f12, $f14
131 0x38 0x60 0x2e 0x46
132
133 # CHECK: c.sf.s $f6, $f7
134 0x38 0x30 0x07 0x46
135
136 # CHECK: c.ueq.d $f12, $f14
137 0x33 0x60 0x2e 0x46
138
139 # CHECK: c.ueq.s $f28, $f18
140 0x33 0xe0 0x12 0x46
141
142 # CHECK: c.ule.d $f12, $f14
143 0x37 0x60 0x2e 0x46
144
145 # CHECK: c.ule.s $f6, $f7
146 0x37 0x30 0x07 0x46
147
148 # CHECK: c.ult.d $f12, $f14
149 0x35 0x60 0x2e 0x46
150
151 # CHECK: c.ult.s $f6, $f7
152 0x35 0x30 0x07 0x46
153
154 # CHECK: c.un.d $f12, $f14
155 0x31 0x60 0x2e 0x46
156
157 # CHECK: c.un.s $f6, $f7
158 0x31 0x30 0x07 0x46
159
160 # CHECK: ceil.w.d $f12, $f14
161 0x0e 0x73 0x20 0x46
162
163 # CHECK: ceil.w.s $f6, $f7
164 0x8e 0x39 0x00 0x46
165
166 # CHECK: cfc1 $6, $7
167 0x00 0x38 0x46 0x44
168
169 # CHECK: clo $6, $7
170 0x21 0x30 0xe6 0x70
171
172 # CHECK: clz $6, $7
173 0x20 0x30 0xe6 0x70
174
175 # CHECK: ctc1 $6, $7
176 0x00 0x38 0xc6 0x44
177
178 # CHECK: cvt.d.s $f6, $f7
179 0xa1 0x39 0x00 0x46
180
181 # CHECK: cvt.d.w $f12, $f14
182 0x21 0x73 0x80 0x46
183
184 # CHECK: cvt.l.d $f12, $f14
185 0x25 0x73 0x20 0x46
186
187 # CHECK: cvt.l.s $f6, $f7
188 0xa5 0x39 0x00 0x46
189
190 # CHECK: cvt.s.d $f12, $f14
191 0x20 0x73 0x20 0x46
192
193 # CHECK: cvt.s.w $f6, $f7
194 0xa0 0x39 0x80 0x46
195
196 # CHECK: cvt.w.d $f12, $f14
197 0x24 0x73 0x20 0x46
198
199 # CHECK: cvt.w.s $f6, $f7
200 0xa4 0x39 0x00 0x46
201
202 # CHECK: floor.w.d $f12, $f14
203 0x0f 0x73 0x20 0x46
204
205 # CHECK: floor.w.s $f6, $f7
206 0x8f 0x39 0x00 0x46
207
208 # CHECK: ins $19, $9, 6, 7
209 0x84 0x61 0x33 0x7d
210
211 # CHECK: j 1328
212 0x4c 0x01 0x00 0x08
213
214 # CHECK: jal 1328
215 0x4c 0x01 0x00 0x0c
216
217 # CHECK: jalx 1328
218 0x4c 0x01 0x00 0x74
219
220 # CHECK: jalr $7
221 0x09 0xf8 0xe0 0x00
222
223 # CHECK: jr $7
224 0x08 0x00 0xe0 0x00
225
226 # CHECK: lb $4, 9158($5)
227 0xc6 0x23 0xa4 0x80
228
229 # CHECK: lbu $4, 6($5)
230 0x06 0x00 0xa4 0x90
231
232 # CHECK: ldc1 $f9, 9158($7)
233 0xc6 0x23 0xe9 0xd4
234
235 # CHECK: lh $4, 12($5)
236 0x0c 0x00 0xa4 0x84
237
238 # CHECK: lh $4, 12($5)
239 0x0c 0x00 0xa4 0x84
240
241 # CHECK: ll $9, 9158($7)
242 0xc6 0x23 0xe9 0xc0
243
244 # CHECK: lui $6, 17767
245 0x67 0x45 0x06 0x3c
246
247 # CHECK: luxc1 $f0, $6($5)
248 0x05 0x00 0xa6 0x4c
249
250 # CHECK: lw $4, 24($5)
251 0x18 0x00 0xa4 0x8c
252
253 # CHECK: lwc1 $f9, 9158($7)
254 0xc6 0x23 0xe9 0xc4
255
256 # CHECK: lwl $2, 3($4)
257 0x03 0x00 0x82 0x88
258
259 # CHECK: lwr $3, 16($5)
260 0x10 0x00 0xa3 0x98
261
262 # CHECK: lwxc1 $f20, $12($14)
263 0x00 0x05 0xcc 0x4d
264
265 # CHECK: madd $6, $7
266 0x00 0x00 0xc7 0x70
267
268 # CHECK: maddu $6, $7
269 0x01 0x00 0xc7 0x70
270
271 # CHECK: mfc0 $8, $16, 4
272 0x04 0x80 0x08 0x40
273
274 # CHECK: mfc1 $6, $f7
275 0x00 0x38 0x06 0x44
276
277 # CHECK: mfhi $5
278 0x10 0x28 0x00 0x00
279
280 # CHECK: mflo $5
281 0x12 0x28 0x00 0x00
282
283 # CHECK: mov.d $f6, $f8
284 0x86 0x41 0x20 0x46
285
286 # CHECK: mov.s $f6, $f7
287 0x86 0x39 0x00 0x46
288
289 # CHECK: msub $6, $7
290 0x04 0x00 0xc7 0x70
291
292 # CHECK: msubu $6, $7
293 0x05 0x00 0xc7 0x70
294
295 # CHECK: mtc0 $9, $15, 1
296 0x01 0x78 0x89 0x40
297
298 # CHECK: mtc1 $6, $f7
299 0x00 0x38 0x86 0x44
300
301 # CHECK: mthi $7
302 0x11 0x00 0xe0 0x00
303
304 # CHECK: mtlo $7
305 0x13 0x00 0xe0 0x00
306
307 # CHECK: mul.d $f8, $f12, $f14
308 0x02 0x62 0x2e 0x46
309
310 # CHECK: mul.s $f9, $f6, $f7
311 0x42 0x32 0x07 0x46
312
313 # CHECK: mul $9, $6, $7
314 0x02 0x48 0xc7 0x70
315
316 # CHECK: mult $3, $5
317 0x18 0x00 0x65 0x00
318
319 # CHECK: multu $3, $5
320 0x19 0x00 0x65 0x00
321
322 # CHECK: neg.d $f12, $f14
323 0x07 0x73 0x20 0x46
324
325 # CHECK: neg.s $f6, $f7
326 0x87 0x39 0x00 0x46
327
328 # CHECK: nop
329 0x00 0x00 0x00 0x00
330
331 # CHECK: nor $9, $6, $7
332 0x27 0x48 0xc7 0x00
333
334 # CHECK: or $3, $3, $5
335 0x25 0x18 0x65 0x00
336
337 # CHECK: ori $9, $6, 17767
338 0x67 0x45 0xc9 0x34
339
340 # CHECK: rotr $9, $6, 7
341 0xc2 0x49 0x26 0x00
342
343 # CHECK: rotrv $9, $6, $7
344 0x46 0x48 0xe6 0x00
345
346 # CHECK: round.w.d $f12, $f14
347 0x0c 0x73 0x20 0x46
348
349 # CHECK: round.w.s $f6, $f7
350 0x8c 0x39 0x00 0x46
351
352 # CHECK: sb $4, 9158($5)
353 0xc6 0x23 0xa4 0xa0
354
355 # CHECK: sb $4, 6($5)
356 0x06 0x00 0xa4 0xa0
357
358 # CHECK: sc $9, 9158($7)
359 0xc6 0x23 0xe9 0xe0
360
361 # CHECK: sdc1 $f9, 9158($7)
362 0xc6 0x23 0xe9 0xf4
363
364 # CHECK: seb $6, $7
365 0x20 0x34 0x07 0x7c
366
367 # CHECK: seh $6, $7
368 0x20 0x36 0x07 0x7c
369
370 # CHECK: sh $4, 9158($5)
371 0xc6 0x23 0xa4 0xa4
372
373 # CHECK: sll $4, $3, 7
374 0xc0 0x21 0x03 0x00
375
376 # CHECK: sllv $2, $3, $5
377 0x04 0x10 0xa3 0x00
378
379 # CHECK: slt $3, $3, $5
380 0x2a 0x18 0x65 0x00
381
382 # CHECK: slti $3, $3, 103
383 0x67 0x00 0x63 0x28
384
385 # CHECK: sltiu $3, $3, 103
386 0x67 0x00 0x63 0x2c
387
388 # CHECK: sltu $3, $3, $5
389 0x2b 0x18 0x65 0x00
390
391 # CHECK: sqrt.d $f12, $f14
392 0x04 0x73 0x20 0x46
393
394 # CHECK: sqrt.s $f6, $f7
395 0x84 0x39 0x00 0x46
396
397 # CHECK: sra $4, $3, 7
398 0xc3 0x21 0x03 0x00
399
400 # CHECK: srav $2, $3, $5
401 0x07 0x10 0xa3 0x00
402
403 # CHECK: srl $4, $3, 7
404 0xc2 0x21 0x03 0x00
405
406 # CHECK: srlv $2, $3, $5
407 0x06 0x10 0xa3 0x00
408
409 # CHECK: sub.d $f8, $f12, $f14
410 0x01 0x62 0x2e 0x46
411
412 # CHECK: sub.s $f9, $f6, $f7
413 0x41 0x32 0x07 0x46
414
415 # CHECK: sub $9, $6, $7
416 0x22 0x48 0xc7 0x00
417
418 # CHECK: subu $4, $3, $5
419 0x23 0x20 0x65 0x00
420
421 # CHECK: suxc1 $f4, $24($5)
422 0x0d 0x20 0xb8 0x4c
423
424 # CHECK: sw $4, 24($5)
425 0x18 0x00 0xa4 0xac
426
427 # CHECK: swc1 $f9, 9158($7)
428 0xc6 0x23 0xe9 0xe4
429
430 # CHECK: swl $4, 16($5)
431 0x10 0x00 0xa4 0xa8
432
433 # CHECK: swr $6, 16($7)
434 0x10 0x00 0xe6 0xb8
435
436 # CHECK: swxc1 $f26, $18($22)
437 0x08 0xd0 0xd2 0x4e
438
439 # CHECK: sync 7
440 0xcf 0x01 0x00 0x00
441
442 # CHECK: trunc.w.d $f12, $f14
443 0x0d 0x73 0x20 0x46
444
445 # CHECK: trunc.w.s $f6, $f7
446 0x8d 0x39 0x00 0x46
447
448 # CHECK: wsbh $6, $7
449 0xa0 0x30 0x07 0x7c
450
451 # CHECK: xor $3, $3, $5
452 0x26 0x18 0x65 0x00
453
454 # CHECK: xori $9, $6, 17767
455 0x67 0x45 0xc9 0x38
456
457 # CHECK: synci 7500($19)
458 0x4c 0x1d 0x7f 0x06
219219 0x04 0x00 0x43 0xcc # CHECK: pref 3, 4($2)
220220 0xc6 0x23 0xe9 0xe8 # CHECK: swc2 $9, 9158($7)
221221 0xca 0x23 0xc8 0xc8 # CHECK: lwc2 $8, 9162($6)
222 0xcd 0x7c 0x4b 0x67 # CHECK: daddiu $11, $26, 31949
223 0x2d 0xd0 0x2b 0x00 # CHECK: daddu $26, $1, $11
224 0x1e 0x00 0x56 0x03 # CHECK: ddiv $zero, $26, $22
225 0x1f 0x00 0x38 0x01 # CHECK: ddivu $zero, $9, $24
226 0x00 0x70 0x22 0x44 # CHECK: dmfc1 $2, $f14
227 0x00 0x28 0xb7 0x44 # CHECK: dmtc1 $23, $f5
228 0x1c 0x00 0x7a 0x01 # CHECK: dmult $11, $26
229 0x1d 0x00 0xed 0x02 # CHECK: dmultu $23, $13
230 0x78 0x1c 0x18 0x00 # CHECK: dsll $3, $24, 17
231 0x14 0xe0 0x1b 0x03 # CHECK: dsllv $gp, $27, $24
232 0xbb 0x0f 0x01 0x00 # CHECK: dsra $1, $1, 30
233 0x17 0x08 0xc1 0x03 # CHECK: dsrav $1, $1, $fp
234 0x3a 0x56 0x1c 0x00 # CHECK: dsrl $10, $gp, 24
235 0x16 0xe0 0xea 0x02 # CHECK: dsrlv $gp, $10, $23
236 0x2f 0xe0 0x78 0x03 # CHECK: dsubu $gp, $27, $24
237 0xcd 0xc4 0x3b 0x8c # CHECK: lw $27, -15155($1)
238 0x01 0x00 0x01 0x3c # CHECK: lui $1, 1
239 0x2e 0xf9 0x63 0x9c # CHECK: lwu $3, -1746($3)
240 0x01 0x00 0x1f 0x3c # CHECK: lui $ra, 1
241 0xc9 0xc4 0x3a 0xac # CHECK: sw $26, -15159($1)
242 0x76 0x0f 0x1a 0xdc # CHECK: ld $26, 3958($zero)
243 0x67 0x45 0x06 0xfc # CHECK: sd $6, 17767($zero)
244 0x05 0x00 0xa6 0x4c # CHECK: luxc1 $f0, $6($5)
245 0x00 0x05 0xcc 0x4d # CHECK: lwxc1 $f20, $12($14)
246 0x0d 0x20 0xb8 0x4c # CHECK: suxc1 $f4, $24($5)
247 0x08 0xd0 0xd2 0x4e # CHECK: swxc1 $f26, $18($22)
248 0x81 0x00 0x42 0x4d # CHECK: ldxc1 $f2, $2($10)
249 0x09 0x40 0x24 0x4f # CHECK: sdxc1 $f8, $4($25)
+0
-84
test/MC/Disassembler/Mips/mips64_le.txt less more
None # RUN: llvm-mc --disassemble %s -triple=mips64el-unknown-linux | FileCheck %s
1 # CHECK: daddiu $11, $26, 31949
2 0xcd 0x7c 0x4b 0x67
3
4 # CHECK: daddu $26, $1, $11
5 0x2d 0xd0 0x2b 0x00
6
7 # CHECK: ddiv $zero, $26, $22
8 0x1e 0x00 0x56 0x03
9
10 # CHECK: ddivu $zero, $9, $24
11 0x1f 0x00 0x38 0x01
12
13 # CHECK: dmfc1 $2, $f14
14 0x00 0x70 0x22 0x44
15
16 # CHECK: dmtc1 $23, $f5
17 0x00 0x28 0xb7 0x44
18
19 # CHECK: dmult $11, $26
20 0x1c 0x00 0x7a 0x01
21
22 # CHECK: dmultu $23, $13
23 0x1d 0x00 0xed 0x02
24
25 # CHECK: dsll $3, $24, 17
26 0x78 0x1c 0x18 0x00
27
28 # CHECK: dsllv $gp, $27, $24
29 0x14 0xe0 0x1b 0x03
30
31 # CHECK: dsra $1, $1, 30
32 0xbb 0x0f 0x01 0x00
33
34 # CHECK: dsrav $1, $1, $fp
35 0x17 0x08 0xc1 0x03
36
37 # CHECK: dsrl $10, $gp, 24
38 0x3a 0x56 0x1c 0x00
39
40 # CHECK: dsrlv $gp, $10, $23
41 0x16 0xe0 0xea 0x02
42
43 # CHECK: dsubu $gp, $27, $24
44 0x2f 0xe0 0x78 0x03
45
46 # CHECK: lw $27, -15155($1)
47 0xcd 0xc4 0x3b 0x8c
48
49 # CHECK: lui $1, 1
50 0x01 0x00 0x01 0x3c
51
52 # CHECK: lwu $3, -1746($3)
53 0x2e 0xf9 0x63 0x9c
54
55 # CHECK: lui $ra, 1
56 0x01 0x00 0x1f 0x3c
57
58 # CHECK: sw $26, -15159($1)
59 0xc9 0xc4 0x3a 0xac
60
61 # CHECK: ld $26, 3958($zero)
62 0x76 0x0f 0x1a 0xdc
63
64 # CHECK: sd $6, 17767($zero)
65 0x67 0x45 0x06 0xfc
66
67 # CHECK: luxc1 $f0, $6($5)
68 0x05 0x00 0xa6 0x4c
69
70 # CHECK: lwxc1 $f20, $12($14)
71 0x00 0x05 0xcc 0x4d
72
73 # CHECK: suxc1 $f4, $24($5)
74 0x0d 0x20 0xb8 0x4c
75
76 # CHECK: swxc1 $f26, $18($22)
77 0x08 0xd0 0xd2 0x4e
78
79 # CHECK: ldxc1 $f2, $2($10)
80 0x81 0x00 0x42 0x4d
81
82 # CHECK: sdxc1 $f8, $4($25)
83 0x09 0x40 0x24 0x4f
240240 0xa0 0x30 0x07 0x7c # CHECK: wsbh $6, $7
241241 0x26 0x18 0x65 0x00 # CHECK: xor $3, $3, $5
242242 0x67 0x45 0xc9 0x38 # CHECK: xori $9, $6, 17767
243 0xcd 0x7c 0x4b 0x67 # CHECK: daddiu $11, $26, 31949
244 0x2d 0xd0 0x2b 0x00 # CHECK: daddu $26, $1, $11
245 0x1e 0x00 0x56 0x03 # CHECK: ddiv $zero, $26, $22
246 0x1f 0x00 0x38 0x01 # CHECK: ddivu $zero, $9, $24
247 0x00 0x70 0x22 0x44 # CHECK: dmfc1 $2, $f14
248 0x00 0x28 0xb7 0x44 # CHECK: dmtc1 $23, $f5
249 0x1c 0x00 0x7a 0x01 # CHECK: dmult $11, $26
250 0x1d 0x00 0xed 0x02 # CHECK: dmultu $23, $13
251 0x78 0x1c 0x18 0x00 # CHECK: dsll $3, $24, 17
252 0x14 0xe0 0x1b 0x03 # CHECK: dsllv $gp, $27, $24
253 0xbb 0x0f 0x01 0x00 # CHECK: dsra $1, $1, 30
254 0x17 0x08 0xc1 0x03 # CHECK: dsrav $1, $1, $fp
255 0x3a 0x56 0x1c 0x00 # CHECK: dsrl $10, $gp, 24
256 0x16 0xe0 0xea 0x02 # CHECK: dsrlv $gp, $10, $23
257 0x2f 0xe0 0x78 0x03 # CHECK: dsubu $gp, $27, $24
258 0xcd 0xc4 0x3b 0x8c # CHECK: lw $27, -15155($1)
259 0x01 0x00 0x01 0x3c # CHECK: lui $1, 1
260 0x2e 0xf9 0x63 0x9c # CHECK: lwu $3, -1746($3)
261 0x01 0x00 0x1f 0x3c # CHECK: lui $ra, 1
262 0xc9 0xc4 0x3a 0xac # CHECK: sw $26, -15159($1)
263 0x76 0x0f 0x1a 0xdc # CHECK: ld $26, 3958($zero)
264 0x67 0x45 0x06 0xfc # CHECK: sd $6, 17767($zero)
265 0x25 0x48 0x09 0x73 # CHECK: dclo $9, $24
266 0x24 0xd0 0x3a 0x71 # CHECK: dclz $26, $9
267 0x43 0xf7 0x87 0x7f # CHECK: dext $7, $gp, 29, 31
268 0xc7 0x7b 0x94 0x7f # CHECK: dins $20, $gp, 15, 1
269 0xa4 0x38 0x1c 0x7c # CHECK: dsbh $7, $gp
270 0x64 0x19 0x0e 0x7c # CHECK: dshd $3, $14
271 0xba 0xa1 0x3b 0x00 # CHECK: drotr $20, $27, 6
272 0x56 0xc0 0xb7 0x00 # CHECK: drotrv $24, $23, $5
+0
-90
test/MC/Disassembler/Mips/mips64r2_le.txt less more
None # RUN: llvm-mc --disassemble %s -triple=mips64el-unknown-linux -mattr +mips64r2 | FileCheck %s
1 # CHECK: daddiu $11, $26, 31949
2 0xcd 0x7c 0x4b 0x67
3
4 # CHECK: daddu $26, $1, $11
5 0x2d 0xd0 0x2b 0x00
6
7 # CHECK: ddiv $zero, $26, $22
8 0x1e 0x00 0x56 0x03
9
10 # CHECK: ddivu $zero, $9, $24
11 0x1f 0x00 0x38 0x01
12
13 # CHECK: dmfc1 $2, $f14
14 0x00 0x70 0x22 0x44
15
16 # CHECK: dmtc1 $23, $f5
17 0x00 0x28 0xb7 0x44
18
19 # CHECK: dmult $11, $26
20 0x1c 0x00 0x7a 0x01
21
22 # CHECK: dmultu $23, $13
23 0x1d 0x00 0xed 0x02
24
25 # CHECK: dsll $3, $24, 17
26 0x78 0x1c 0x18 0x00
27
28 # CHECK: dsllv $gp, $27, $24
29 0x14 0xe0 0x1b 0x03
30
31 # CHECK: dsra $1, $1, 30
32 0xbb 0x0f 0x01 0x00
33
34 # CHECK: dsrav $1, $1, $fp
35 0x17 0x08 0xc1 0x03
36
37 # CHECK: dsrl $10, $gp, 24
38 0x3a 0x56 0x1c 0x00
39
40 # CHECK: dsrlv $gp, $10, $23
41 0x16 0xe0 0xea 0x02
42
43 # CHECK: dsubu $gp, $27, $24
44 0x2f 0xe0 0x78 0x03
45
46 # CHECK: lw $27, -15155($1)
47 0xcd 0xc4 0x3b 0x8c
48
49 # CHECK: lui $1, 1
50 0x01 0x00 0x01 0x3c
51
52 # CHECK: lwu $3, -1746($3)
53 0x2e 0xf9 0x63 0x9c
54
55 # CHECK: lui $ra, 1
56 0x01 0x00 0x1f 0x3c
57
58 # CHECK: sw $26, -15159($1)
59 0xc9 0xc4 0x3a 0xac
60
61 # CHECK: ld $26, 3958($zero)
62 0x76 0x0f 0x1a 0xdc
63
64 # CHECK: sd $6, 17767($zero)
65 0x67 0x45 0x06 0xfc
66
67 # CHECK: dclo $9, $24
68 0x25 0x48 0x09 0x73
69
70 # CHECK: dclz $26, $9
71 0x24 0xd0 0x3a 0x71
72
73 # CHECK: dext $7, $gp, 29, 31
74 0x43 0xf7 0x87 0x7f
75
76 # CHECK: dins $20, $gp, 15, 1
77 0xc7 0x7b 0x94 0x7f
78
79 # CHECK: dsbh $7, $gp
80 0xa4 0x38 0x1c 0x7c
81
82 # CHECK: dshd $3, $14
83 0x64 0x19 0x0e 0x7c
84
85 # CHECK: drotr $20, $27, 6
86 0xba 0xa1 0x3b 0x00
87
88 # CHECK: drotrv $24, $23, $5
89 0x56 0xc0 0xb7 0x00