source: icGREP/icgrep-devel/llvm-3.6.1.src/test/MC/Disassembler/Mips/micromips_le.txt @ 4664

Last change on this file since 4664 was 4574, checked in by cameron, 4 years ago

Updating to LLVM 3.6

File size: 6.6 KB
Line 
1# RUN: llvm-mc --disassemble %s -triple=mipsel-unknown-linux -mattr=micromips \
2# RUN: | FileCheck %s
3
4# CHECK: add $9, $6, $7
50xe6 0x00 0x10 0x49
6
7# CHECK: addi $9, $6, 17767
80x26 0x11 0x67 0x45
9
10# CHECK: addiu $9, $6, -15001
110x26 0x31 0x67 0xc5
12
13# CHECK: addi $9, $6, 17767
140x26 0x11 0x67 0x45
15
16# CHECK: addiu $9, $6, -15001
170x26 0x31 0x67 0xc5
18
19# CHECK: addiusp -16
200xf9 0x4f
21
22# CHECK: addiusp -1028
230xff 0x4f
24
25# CHECK: addiusp -1032
260xfd 0x4f
27
28# CHECK: addiusp 1024
290x01 0x4c
30
31# CHECK: addiusp 1028
320x03 0x4c
33
34# CHECK: addu $9, $6, $7
350xe6 0x00 0x50 0x49
36
37# CHECK: andi16 $16, $2, 31
380x29 0x2c
39
40# CHECK: sub $9, $6, $7
410xe6 0x00 0x90 0x49
42
43# CHECK: subu  $4, $3, $5
440xa3 0x00 0xd0 0x21
45
46# CHECK: sub $6, $zero, $7
470xe0 0x00 0x90 0x31
48
49# CHECK: subu $6, $zero, $7
500xe0 0x00 0xd0 0x31
51
52# CHECK: addu $7, $8, $zero
530x08 0x00 0x50 0x39
54
55# CHECK: slt $3, $3, $5
560xa3 0x00 0x50 0x1b
57
58# CHECK: slti $3, $3, 103
590x63 0x90 0x67 0x00
60
61# CHECK: slti $3, $3, 103
620x63 0x90 0x67 0x00
63
64# CHECK: sltiu $3, $3, 103
650x63 0xb0 0x67 0x00
66
67# CHECK: sltu $3, $3, $5
680xa3 0x00 0x90 0x1b
69
70# CHECK: lui $9, 17767
710xa9 0x41 0x67 0x45
72
73# CHECK: and $9, $6, $7
740xe6 0x00 0x50 0x4a
75
76# CHECK: andi $9, $6, 17767
770x26 0xd1 0x67 0x45
78
79# CHECK: andi $9, $6, 17767
800x26 0xd1 0x67 0x45
81
82# CHECK: or $3, $4, $5
830xa4 0x00 0x90 0x1a
84
85# CHECK: ori $9, $6, 17767
860x26 0x51 0x67 0x45
87
88# CHECK: xor $3, $3, $5
890xa3 0x00 0x10 0x1b
90
91# CHECK: xori $9, $6, 17767
920x26 0x71 0x67 0x45
93
94# CHECK: xori $9, $6, 17767
950x26 0x71 0x67 0x45
96
97# CHECK: nor $9, $6, $7
980xe6 0x00 0xd0 0x4a
99
100# CHECK: not $7, $8
1010x08 0x00 0xd0 0x3a
102
103# CHECK: mul $9, $6, $7
1040xe6 0x00 0x10 0x4a
105
106# CHECK: mult $9, $7
1070xe9 0x00 0x3c 0x8b
108
109# CHECK: multu $9, $7
1100xe9 0x00 0x3c 0x9b
111
112# CHECK: div $zero, $9, $7
1130xe9 0x00 0x3c 0xab
114
115# CHECK: divu $zero, $9, $7
1160xe9 0x00 0x3c 0xbb
117
118# CHECK: sll $4, $3, 7
1190x83 0x00 0x00 0x38
120
121# CHECK: sllv $2, $3, $5
1220x65 0x00 0x10 0x10
123
124# CHECK: sra $4, $3, 7
1250x83 0x00 0x80 0x38
126
127# CHECK: srav $2, $3, $5
1280x65 0x00 0x90 0x10
129
130# CHECK: srl $4, $3, 7
1310x83 0x00 0x40 0x38
132
133# CHECK: srlv $2, $3, $5
1340x65 0x00 0x50 0x10
135
136# CHECK: rotr $9, $6, 7
1370x26 0x01 0xc0 0x38
138
139# CHECK: rotrv $9, $6, $7
1400xc7 0x00 0xd0 0x48
141
142# CHECK: lb $5, 8($4)
1430xa4 0x1c 0x08 0x00
144
145# CHECK: lbu $6, 8($4)
1460xc4 0x14 0x08 0x00
147
148# CHECK: lh $2, 8($4)
1490x44 0x3c 0x08 0x00
150
151# CHECK: lhu $4, 8($2)
1520x82 0x34 0x08 0x00
153
154# CHECK: lw $6, 4($5)
1550xc5 0xfc 0x04 0x00
156
157# CHECK: lw $6, 123($sp)
1580xdd 0xfc 0x7b 0x00
159
160# CHECK: sb $5, 8($4)
1610xa4 0x18 0x08 0x00
162
163# CHECK: sh $2, 8($4)
1640x44 0x38 0x08 0x00
165
166# CHECK: sw $5, 4($6)
1670xa6 0xf8 0x04 0x00
168
169# CHECK: sw $5, 123($sp)
1700xbd 0xf8 0x7b 0x00
171
172# CHECK: lwu $2, 8($4)
1730x44 0x60 0x08 0xe0
174
175# CHECK: lwl $4, 16($5)
1760x85 0x60 0x10 0x00
177
178# CHECK: lwr $4, 16($5)
1790x85 0x60 0x10 0x10
180
181# CHECK: swl $4, 16($5)
1820x85 0x60 0x10 0x80
183
184# CHECK: swr $4, 16($5)
1850x85 0x60 0x10 0x90
186
187# CHECK: movz $9, $6, $7
1880xe6 0x00 0x58 0x48
189
190# CHECK: movn $9, $6, $7
1910xe6 0x00 0x18 0x48
192
193# CHECK: movt $9, $6, $fcc0
1940x26 0x55 0x7b 0x09
195
196# CHECK: movf $9, $6, $fcc0
1970x26 0x55 0x7b 0x01
198
199# CHECK: mthi $6
2000x06 0x00 0x7c 0x2d
201
202# CHECK: mfhi $6
2030x06 0x00 0x7c 0x0d
204
205# CHECK: mtlo $6
2060x06 0x00 0x7c 0x3d
207
208# CHECK: mflo $6
2090x06 0x00 0x7c 0x1d
210
211# CHECK: madd $4, $5
2120xa4 0x00 0x3c 0xcb
213
214# CHECK: maddu $4, $5
2150xa4 0x00 0x3c 0xdb
216
217# CHECK: msub $4, $5
2180xa4 0x00 0x3c 0xeb
219
220# CHECK: msubu $4, $5
2210xa4 0x00 0x3c 0xfb
222
223# CHECK: clz $9, $6
2240x26 0x01 0x3c 0x5b
225
226# CHECK: clo $9, $6
2270x26 0x01 0x3c 0x4b
228
229# CHECK: seb $9, $6
2300x26 0x01 0x3c 0x2b
231
232# CHECK: seh $9, $6
2330x26 0x01 0x3c 0x3b
234
235# CHECK: wsbh $9, $6
2360x26 0x01 0x3c 0x7b
237
238# CHECK: ext $9, $6, 3, 7
2390x26 0x01 0xec 0x30
240
241# CHECK: ins $9, $6, 3, 7
2420x26 0x01 0xcc 0x48
243
244# CHECK: j 1328
2450x00 0xd4 0x98 0x02
246
247# CHECK: jal 1328
2480x00 0xf4 0x98 0x02
249
250# CHECK: jalr $ra, $6
2510xe6 0x03 0x3c 0x0f
252
253# CHECK: jr $7
2540x07 0x00 0x3c 0x0f
255
256# CHECK: jraddiusp 20
2570x05 0x47
258
259# CHECK: beq $9, $6, 1332
2600xc9 0x94 0x9a 0x02
261
262# CHECK: bgez $6, 1332
2630x46 0x40 0x9a 0x02
264
265# CHECK: bgezal $6, 1332
2660x66 0x40 0x9a 0x02
267
268# CHECK: bltzal $6, 1332
2690x26 0x40 0x9a 0x02
270
271# CHECK: bgtz $6, 1332
2720xc6 0x40 0x9a 0x02
273
274# CHECK: blez $6, 1332
2750x86 0x40 0x9a 0x02
276
277# CHECK: bne $9, $6, 1332
2780xc9 0xb4 0x9a 0x02
279
280# CHECK: bltz $6, 1332
2810x06 0x40 0x9a 0x02
282
283# CHECK: teq $8, $9, 0
2840x28 0x01 0x3c 0x00
285
286# CHECK: tge $8, $9, 0
2870x28 0x01 0x3c 0x02
288
289# CHECK: tgeu $8, $9, 0
2900x28 0x01 0x3c 0x04
291
292# CHECK: tlt $8, $9, 0
2930x28 0x01 0x3c 0x08
294
295# CHECK: tltu $8, $9, 0
2960x28 0x01 0x3c 0x0a
297
298# CHECK: tne $8, $9, 0
2990x28 0x01 0x3c 0x0c
300
301# CHECK: teqi $9, 17767
3020xc9 0x41 0x67 0x45
303
304# CHECK: tgei $9, 17767
3050x29 0x41 0x67 0x45
306
307# CHECK: tgeiu $9, 17767
3080x69 0x41 0x67 0x45
309
310# CHECK: tlti $9, 17767
3110x09 0x41 0x67 0x45
312
313# CHECK: tltiu $9, 17767
3140x49 0x41 0x67 0x45
315
316# CHECK: tnei $9, 17767
3170x89 0x41 0x67 0x45
318
319# CHECK: cache 1, 8($5)
3200x25 0x20 0x08 0x60
321
322# CHECK: pref 1, 8($5)
3230x25 0x60 0x08 0x20
324
325# CHECK: ssnop
3260x00 0x00 0x00 0x08
327
328# CHECK: ehb
3290x00 0x00 0x00 0x18
330
331# CHECK: pause
3320x00 0x00 0x00 0x28
333
334# CHECK: ll $2, 8($4)
3350x44 0x60 0x08 0x30
336
337# CHECK: sc $2, 8($4)
3380x44 0x60 0x08 0xb0
339
340# CHECK: lwxs $2, $3($4)
3410x64 0x00 0x18 0x11
342
343# CHECK: bgezals $6, 1332
3440x66 0x42 0x9a 0x02
345
346# CHECK: bltzals $6, 1332
3470x26 0x42 0x9a 0x02
348
349# CHECK: beqzc $9, 1332
3500xe9 0x40 0x9a 0x02
351
352# CHECK: bnezc $9, 1332
3530xa9 0x40 0x9a 0x02
354
355# CHECK: jals 1328
3560x00 0x74 0x98 0x02
357
358# CHECK: jalrs $ra, $6
3590xe6 0x03 0x3c 0x4f
360
361# CHECK: lwm32 $16, $17, 8($4)
3620x44 0x20 0x08 0x50
363
364# CHECK: swm32 $16, $17, 8($4)
3650x44 0x20 0x08 0xd0
366
367# CHECK: swp $16, 8($4)
3680x04 0x22  0x08 0x90
369
370# CHECK: lwp $16, 8($4)
3710x04 0x22 0x08 0x10
372
373# CHECK: nop
3740x00 0x00 0x00 0x00
375
376# CHECK: addu16 $6, $17, $4
3770x42 0x07
378
379# CHECK: subu16 $5, $16, $3
3800xb1 0x06
381
382# CHECK: and16 $16, $2
3830x82 0x44
384
385# CHECK: not16 $17, $3
3860x0b 0x44
387
388# CHECK: or16 $16, $4
3890xc4 0x44
390
391# CHECK: xor16 $17, $5
3920x4d 0x44
393
394# CHECK: sll16 $3, $16, 5
3950x8a 0x25
396
397# CHECK: srl16 $4, $17, 6
3980x1d 0x26
399
400# CHECK: lbu16 $3, 4($17)
4010x94 0x09
402
403# CHECK: lbu16 $3, -1($16)
4040x8f 0x09
405
406# CHECK: lhu16 $3, 4($16)
4070x82 0x29
408
409# CHECK: lw16 $4, 8($17)
4100x12 0x6a
411
412# CHECK: sb16 $3, 4($16)
4130x84 0x89
414
415# CHECK: sh16 $4, 8($17)
4160x14 0xaa
417
418# CHECK: sw16 $4, 4($17)
4190x11 0xea
420
421# CHECK: sw16 $zero, 4($17)
4220x11 0xe8
423
424# CHECK: mfhi $9
4250x09 0x46
426
427# CHECK: mflo $9
4280x49 0x46
429
430# CHECK: move $25, $1
4310x21 0x0f
432
433# CHECK: jrc $9
4340xa9 0x45
435
436# CHECK: jalr $9
4370xc9 0x45
438
439# CHECK: jalrs16 $9
4400xe9 0x45
441
442# CHECK: jr16 $9
4430x89 0x45
444
445# CHECK: li16 $3, -1
4460xff 0xed
447
448# CHECK: li16 $3, 126
4490xfe 0xed
450
451# CHECK: addiur1sp $7, 4
4520x83 0x6f
453
454# CHECK: addiur2 $6, $7, -1
4550x7e 0x6f
456
457# CHECK: addiur2 $6, $7, 12
4580x76 0x6f
459
460# CHECK: addius5 $7, -2
4610xfc 0x4c
462
463# CHECK: nop
4640x00 0x0c
465
466# CHECK: lw $3, 32($sp)
4670x68 0x48
468
469# CHECK: sw $4, 124($sp)
4700x9f 0xc8
471
472# CHECK: beqz16 $6, 20
4730x0a 0x8f
474
475# CHECK: bnez16 $6, 20
4760x0a 0xaf
Note: See TracBrowser for help on using the repository browser.