• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llvm-mc --disassemble %s -triple=mipsel-unknown-linux -mattr=micromips,eva \
2# RUN: | FileCheck %s
3
40xf9 0x4f # CHECK: addiusp -16
50xff 0x4f # CHECK: addiusp -1028
60xfd 0x4f # CHECK: addiusp -1032
70x01 0x4c # CHECK: addiusp 1024
80x03 0x4c # CHECK: addiusp 1028
90x29 0x2c # CHECK: andi16 $16, $2, 31
100x05 0x47 # CHECK: jraddiusp 20
110x42 0x07 # CHECK: addu16 $6, $17, $4
120xb1 0x06 # CHECK: subu16 $5, $16, $3
130x82 0x44 # CHECK: and16 $16, $2
140x0b 0x44 # CHECK: not16 $17, $3
150xc4 0x44 # CHECK: or16 $16, $4
160x4d 0x44 # CHECK: xor16 $17, $5
170x8a 0x25 # CHECK: sll16 $3, $16, 5
180x1d 0x26 # CHECK: srl16 $4, $17, 6
190x94 0x09 # CHECK: lbu16 $3, 4($17)
200x8f 0x09 # CHECK: lbu16 $3, -1($16)
210x82 0x29 # CHECK: lhu16 $3, 4($16)
220x12 0x6a # CHECK: lw16 $4, 8($17)
230x84 0x89 # CHECK: sb16 $3, 4($16)
240x14 0xaa # CHECK: sh16 $4, 8($17)
250x11 0xea # CHECK: sw16 $4, 4($17)
260x11 0xe8 # CHECK: sw16 $zero, 4($17)
270x09 0x46 # CHECK: mfhi16 $9
280x49 0x46 # CHECK: mflo16 $9
290x21 0x0f # CHECK: move $25, $1
300x9a 0x85 # CHECK: movep $4, $21, $18, $17
310xa9 0x45 # CHECK: jrc $9
320xc9 0x45 # CHECK: jalr $9
330xe9 0x45 # CHECK: jalrs16 $9
340x89 0x45 # CHECK: jr16 $9
350xff 0xed # CHECK: li16 $3, -1
360xfe 0xed # CHECK: li16 $3, 126
370x83 0x6f # CHECK: addiur1sp $7, 4
380x7e 0x6f # CHECK: addiur2 $6, $7, -1
390x76 0x6f # CHECK: addiur2 $6, $7, 12
400xfc 0x4c # CHECK: addius5 $7, -2
410x00 0x0c # CHECK: nop
420x68 0x48 # CHECK: lw $3, 32($sp)
430x9f 0xc8 # CHECK: sw $4, 124($sp)
440x0a 0x8f # CHECK: beqz16 $6, 20
450x0a 0xaf # CHECK: bnez16 $6, 20
460x42 0xcc # CHECK: b16 132
470x88 0x65 # CHECK: lw $3, 32($gp)
480x12 0x45 # CHECK: lwm16 $16, $17, $ra, 8($sp)
490x52 0x45 # CHECK: swm16 $16, $17, $ra, 8($sp)
500x88 0x46 # CHECK: break16 8
510xce 0x46 # CHECK: sdbbp16 14
520x34 0x84 # CHECK: movep $5, $6, $2, $3
530x40 0x54 0x7b 0x03 # CHECK: abs.s $f2, $f0
540x40 0x54 0x7b 0x23 # CHECK: abs.d $f2, $f0
550xe6 0x00 0x10 0x49 # CHECK: add $9, $6, $7
560x26 0x11 0x67 0x45 # CHECK: addi $9, $6, 17767
570x26 0x31 0x67 0xc5 # CHECK: addiu $9, $6, -15001
580x26 0x11 0x67 0x45 # CHECK: addi $9, $6, 17767
590x26 0x31 0x67 0xc5 # CHECK: addiu $9, $6, -15001
600xe6 0x00 0x50 0x49 # CHECK: addu $9, $6, $7
610x80 0x43 0xe6 0xff # CHECK: bc1f -48
620xa0 0x43 0xe2 0xff # CHECK: bc1t -56
630xe6 0x00 0x90 0x49 # CHECK: sub $9, $6, $7
640xa3 0x00 0xd0 0x21 # CHECK: subu  $4, $3, $5
650xe0 0x00 0x90 0x31 # CHECK: neg $6, $7
660xe0 0x00 0xd0 0x31 # CHECK: negu $6, $7
670x08 0x00 0x50 0x39 # CHECK: addu $7, $8, $zero
680xa3 0x00 0x50 0x1b # CHECK: slt $3, $3, $5
690x63 0x90 0x67 0x00 # CHECK: slti $3, $3, 103
700x63 0x90 0x67 0x00 # CHECK: slti $3, $3, 103
710x63 0xb0 0x67 0x00 # CHECK: sltiu $3, $3, 103
720xa3 0x00 0x90 0x1b # CHECK: sltu $3, $3, $5
730xa9 0x41 0x67 0x45 # CHECK: lui $9, 17767
740xe6 0x00 0x50 0x4a # CHECK: and $9, $6, $7
750x26 0xd1 0x67 0x45 # CHECK: andi $9, $6, 17767
760xa4 0x00 0x90 0x1a # CHECK: or $3, $4, $5
770x26 0x51 0x67 0x45 # CHECK: ori $9, $6, 17767
780xa3 0x00 0x10 0x1b # CHECK: xor $3, $3, $5
790x26 0x71 0x67 0x45 # CHECK: xori $9, $6, 17767
800xe6 0x00 0xd0 0x4a # CHECK: nor $9, $6, $7
810x08 0x00 0xd0 0x3a # CHECK: not $7, $8
820xe6 0x00 0x10 0x4a # CHECK: mul $9, $6, $7
830xe9 0x00 0x3c 0x8b # CHECK: mult $9, $7
840xe9 0x00 0x3c 0x9b # CHECK: multu $9, $7
850xe9 0x00 0x3c 0xab # CHECK: div $zero, $9, $7
860xe9 0x00 0x3c 0xbb # CHECK: divu $zero, $9, $7
870x83 0x00 0x00 0x38 # CHECK: sll $4, $3, 7
880x65 0x00 0x10 0x10 # CHECK: sllv $2, $3, $5
890x83 0x00 0x80 0x38 # CHECK: sra $4, $3, 7
900x65 0x00 0x90 0x10 # CHECK: srav $2, $3, $5
910x83 0x00 0x40 0x38 # CHECK: srl $4, $3, 7
920x65 0x00 0x50 0x10 # CHECK: srlv $2, $3, $5
930x26 0x01 0xc0 0x38 # CHECK: rotr $9, $6, 7
940xc7 0x00 0xd0 0x48 # CHECK: rotrv $9, $6, $7
950xa4 0x1c 0x08 0x00 # CHECK: lb $5, 8($4)
960xc4 0x14 0x08 0x00 # CHECK: lbu $6, 8($4)
970x44 0x3c 0x08 0x00 # CHECK: lh $2, 8($4)
980x82 0x34 0x08 0x00 # CHECK: lhu $4, 8($2)
990xc5 0xfc 0x04 0x00 # CHECK: lw $6, 4($5)
1000xdd 0xfc 0x7b 0x00 # CHECK: lw $6, 123($sp)
1010xa4 0x18 0x08 0x00 # CHECK: sb $5, 8($4)
1020x44 0x38 0x08 0x00 # CHECK: sh $2, 8($4)
1030xa6 0xf8 0x04 0x00 # CHECK: sw $5, 4($6)
1040xbd 0xf8 0x7b 0x00 # CHECK: sw $5, 123($sp)
1050x44 0x60 0x08 0xe0 # CHECK: lwu $2, 8($4)
1060x85 0x60 0x10 0x00 # CHECK: lwl $4, 16($5)
1070x85 0x60 0x10 0x10 # CHECK: lwr $4, 16($5)
1080x85 0x60 0x10 0x80 # CHECK: swl $4, 16($5)
1090x85 0x60 0x10 0x90 # CHECK: swr $4, 16($5)
1100xe6 0x00 0x58 0x48 # CHECK: movz $9, $6, $7
1110xe6 0x00 0x18 0x48 # CHECK: movn $9, $6, $7
1120x26 0x55 0x7b 0x09 # CHECK: movt $9, $6, $fcc0
1130x26 0x55 0x7b 0x01 # CHECK: movf $9, $6, $fcc0
1140xe6 0x54 0x78 0x20 # CHECK: movz.s $f4, $f6, $7
1150xe6 0x54 0x78 0x21 # CHECK: movz.d $f4, $f6, $7
1160xe6 0x54 0x38 0x20 # CHECK: movn.s $f4, $f6, $7
1170xe6 0x54 0x38 0x21 # CHECK: movn.d $f4, $f6, $7
1180x86 0x54 0x60 0x00 # CHECK: movt.s $f4, $f6, $fcc0
1190x86 0x54 0x60 0x02 # CHECK: movt.d $f4, $f6, $fcc0
1200x86 0x54 0x20 0x00 # CHECK: movf.s $f4, $f6, $fcc0
1210x86 0x54 0x20 0x02 # CHECK: movf.d $f4, $f6, $fcc0
1220x06 0x00 0x7c 0x2d # CHECK: mthi $6
1230x06 0x00 0x7c 0x0d # CHECK: mfhi $6
1240x06 0x00 0x7c 0x3d # CHECK: mtlo $6
1250x06 0x00 0x7c 0x1d # CHECK: mflo $6
1260xa4 0x00 0x3c 0xcb # CHECK: madd $4, $5
1270xa4 0x00 0x3c 0xdb # CHECK: maddu $4, $5
1280xa4 0x00 0x3c 0xeb # CHECK: msub $4, $5
1290xa4 0x00 0x3c 0xfb # CHECK: msubu $4, $5
1300x26 0x01 0x3c 0x5b # CHECK: clz $9, $6
1310x26 0x01 0x3c 0x4b # CHECK: clo $9, $6
1320x26 0x01 0x3c 0x2b # CHECK: seb $9, $6
1330x26 0x01 0x3c 0x3b # CHECK: seh $9, $6
1340x26 0x01 0x3c 0x7b # CHECK: wsbh $9, $6
1350x26 0x01 0xec 0x30 # CHECK: ext $9, $6, 3, 7
1360x26 0x01 0xcc 0x48 # CHECK: ins $9, $6, 3, 7
1370x00 0xd4 0x98 0x02 # CHECK: j 1328
1380x00 0xf4 0x98 0x02 # CHECK: jal 1328
1390xe6 0x03 0x3c 0x0f # CHECK: jalr $ra, $6
1400x10 0xf0 0x34 0x00 # CHECK: jalx 4194512
1410x07 0x00 0x3c 0x0f # CHECK: jr $7
1420xc9 0x94 0x9a 0x02 # CHECK: beq $9, $6, 1336
1430x46 0x40 0x9a 0x02 # CHECK: bgez $6, 1336
1440x66 0x40 0x9a 0x02 # CHECK: bgezal $6, 1336
1450x26 0x40 0x9a 0x02 # CHECK: bltzal $6, 1336
1460xc6 0x40 0x9a 0x02 # CHECK: bgtz $6, 1336
1470x86 0x40 0x9a 0x02 # CHECK: blez $6, 1336
1480xc9 0xb4 0x9a 0x02 # CHECK: bne $9, $6, 1336
1490x06 0x40 0x9a 0x02 # CHECK: bltz $6, 1336
1500x00 0x00 0x7c 0x03 # CHECK: tlbp
1510x00 0x00 0x7c 0x13 # CHECK: tlbr
1520x00 0x00 0x7c 0x23 # CHECK: tlbwi
1530x00 0x00 0x7c 0x33 # CHECK: tlbwr
1540x28 0x01 0x3c 0x00 # CHECK: teq $8, $9
1550x28 0x01 0x3c 0x02 # CHECK: tge $8, $9
1560x28 0x01 0x3c 0x04 # CHECK: tgeu $8, $9
1570x28 0x01 0x3c 0x08 # CHECK: tlt $8, $9
1580x28 0x01 0x3c 0x0a # CHECK: tltu $8, $9
1590x28 0x01 0x3c 0x0c # CHECK: tne $8, $9
1600xc9 0x41 0x67 0x45 # CHECK: teqi $9, 17767
1610x29 0x41 0x67 0x45 # CHECK: tgei $9, 17767
1620x69 0x41 0x67 0x45 # CHECK: tgeiu $9, 17767
1630x09 0x41 0x67 0x45 # CHECK: tlti $9, 17767
1640x49 0x41 0x67 0x45 # CHECK: tltiu $9, 17767
1650x89 0x41 0x67 0x45 # CHECK: tnei $9, 17767
1660x25 0x20 0x08 0x60 # CHECK: cache 1, 8($5)
1670x25 0x60 0x08 0x20 # CHECK: pref 1, 8($5)
1680x00 0x00 0x00 0x08 # CHECK: ssnop
1690x00 0x00 0x00 0x18 # CHECK: ehb
1700x00 0x00 0x00 0x28 # CHECK: pause
1710x44 0x60 0x08 0x30 # CHECK: ll $2, 8($4)
1720x44 0x60 0x08 0xb0 # CHECK: sc $2, 8($4)
1730x64 0x00 0x18 0x11 # CHECK: lwxs $2, $3($4)
1740x66 0x42 0x9a 0x02 # CHECK: bgezals $6, 1336
1750x26 0x42 0x9a 0x02 # CHECK: bltzals $6, 1336
1760xe9 0x40 0x9a 0x02 # CHECK: beqzc $9, 1336
1770xa9 0x40 0x9a 0x02 # CHECK: bnezc $9, 1336
1780x00 0x74 0x98 0x02 # CHECK: jals 1328
1790xe6 0x03 0x3c 0x4f # CHECK: jalrs $ra, $6
1800x44 0x20 0x08 0x50 # CHECK: lwm32 $16, $17, 8($4)
1810x3b 0x21 0x84 0x59 # CHECK: lwm32 $16, $17, $18, $19, $20, $21, $22, $23, $fp, -1660($27)
1820x44 0x20 0x08 0xd0 # CHECK: swm32 $16, $17, 8($4)
1830x04 0x22 0x08 0x90 # CHECK: swp $16, 8($4)
1840x04 0x22 0x08 0x10 # CHECK: lwp $16, 8($4)
1850x00 0x00 0x00 0x00 # CHECK: nop
1860x00 0x79 0x05 0x00 # CHECK: addiupc $2, 20
1870xbf 0x7b 0xff 0xff # CHECK: addiupc $7, 16777212
1880xc0 0x7b 0x00 0x00 # CHECK: addiupc $7, -16777216
1890x00 0x00 0x7c 0x57 # CHECK: ei
1900x0a 0x00 0x7c 0x57 # CHECK: ei $10
1910x25 0x60 0x08 0xa6 # CHECK: cachee 1, 8($5)
1920x25 0x60 0x08 0xa4 # CHECK: prefe 1, 8($5)
1930x65 0x54 0xa0 0x09 # CHECK: prefx 1, $3($5)
1940x82 0x60 0x08 0x62 # CHECK: lhue $4, 8($2)
1950x82 0x60 0x08 0x68 # CHECK: lbe $4, 8($2)
1960x82 0x60 0x08 0x60 # CHECK: lbue $4, 8($2)
1970x82 0x60 0x08 0x6a # CHECK: lhe $4, 8($2)
1980x82 0x60 0x08 0x6e # CHECK: lwe $4, 8($2)
1990xa4 0x60 0x08 0xa8 # CHECK: sbe $5, 8($4)
2000xa4 0x60 0x08 0xaa # CHECK: she $5, 8($4)
2010xa4 0x60 0x08 0xae # CHECK: swe $5, 8($4)
2020x03 0x63 0x05 0xa2 # CHECK: swre $24, 5($3)
2030x03 0x63 0x05 0xa0 # CHECK: swle $24, 5($3)
2040x03 0x63 0x05 0x66 # CHECK: lwre $24, 5($3)
2050x04 0x63 0x02 0x64 # CHECK: lwle $24, 2($4)
2060x44 0x60 0x08 0x6c # CHECK: lle $2, 8($4)
2070x44 0x60 0x08 0xac # CHECK: sce $2, 8($4)
2080x00 0x00 0x7c 0x8b # CHECK: syscall
2090x8c 0x01 0x7c 0x8b # CHECK: syscall 396
2100xea 0xbc 0x2c 0x01 # CHECK: ldc1 $f7, 300($10)
2110x0a 0xbd 0x2c 0x01 # CHECK: ldc1 $f8, 300($10)
2120x46 0x9c 0x04 0x00 # CHECK: lwc1 $f2, 4($6)
2130xea 0xb8 0x40 0x00 # CHECK: sdc1 $f7, 64($10)
2140x46 0xb8 0x04 0x00 # CHECK: sdc1 $f2, 4($6)
2150x46 0x98 0x04 0x00 # CHECK: swc1 $f2, 4($6)
2160x46,0x56,0x3b,0x52 # CHECK: recip.d $f18, $f6
2170x7e,0x54,0x3b,0x12 # CHECK: recip.s $f3, $f30
2180x5c,0x54,0x3b,0x42 # CHECK: rsqrt.d $f2, $f28
2190x88,0x54,0x3b,0x02 # CHECK: rsqrt.s $f4, $f8
2200x0c 0x54 0x3b 0x0a # CHECK: sqrt.s  $f0, $f12
2210x0c 0x54 0x7b 0x03 # CHECK: abs.s   $f0, $f12
2220x0c 0x54 0x3b 0x4a # CHECK: sqrt.d  $f0, $f12
2230x0c 0x54 0x7b 0x23 # CHECK: abs.d   $f0, $f12
2240x80 0x54 0x3b 0x38 # CHECK: mthc1 $4, $f0
2250x80 0x54 0x3b 0x30 # CHECK: mfhc1 $4, $f0
2260x82 0x54 0x30 0x01 # CHECK: add.d $f0, $f2, $f4
2270x82 0x54 0x70 0x01 # CHECK: sub.d $f0, $f2, $f4
2280x82 0x54 0xb0 0x01 # CHECK: mul.d $f0, $f2, $f4
2290x82 0x54 0xf0 0x01 # CHECK: div.d $f0, $f2, $f4
2300x02 0x54 0x7b 0x20 # CHECK: mov.d $f0, $f2
2310x02 0x54 0x7b 0x2b # CHECK: neg.d $f0, $f2
2320x02 0x54 0x3b 0x49 # CHECK: cvt.w.d $f0, $f2
2330x02 0x54 0x7b 0x13 # CHECK: cvt.d.s $f0, $f2
2340x02 0x54 0x7b 0x33 # CHECK: cvt.d.w $f0, $f2
2350x02 0x54 0x7b 0x1b # CHECK: cvt.s.d $f0, $f2
2360x07 0x00 0x7c 0x6b # CHECK: sync  7
2370x03 0x42 0x00 0x04 # CHECK: synci 1024($3)
2380xc4 0x54 0x81 0x00 # CHECK: madd.s  $f0, $f2, $f4, $f6
2390xc4 0x54 0x89 0x00 # CHECK: madd.d  $f0, $f2, $f4, $f6
2400xc4 0x54 0x82 0x00 # CHECK: nmadd.s $f0, $f2, $f4, $f6
2410xc4 0x54 0x8a 0x00 # CHECK: nmadd.d $f0, $f2, $f4, $f6
2420xc4 0x54 0xa1 0x00 # CHECK: msub.s  $f0, $f2, $f4, $f6
2430xc4 0x54 0xa9 0x00 # CHECK: msub.d  $f0, $f2, $f4, $f6
2440xc4 0x54 0xa2 0x00 # CHECK: nmsub.s $f0, $f2, $f4, $f6
2450xc4 0x54 0xaa 0x00 # CHECK: nmsub.d $f0, $f2, $f4, $f6
2460xc8 0x54 0x3b 0x1b # CHECK: ceil.w.s   $f6, $f8
2470xc8 0x54 0x3b 0x5b # CHECK: ceil.w.d   $f6, $f8
2480xc8 0x54 0x3b 0x09 # CHECK: cvt.w.s    $f6, $f8
2490xc8 0x54 0x3b 0x49 # CHECK: cvt.w.d    $f6, $f8
2500xc8 0x54 0x3b 0x0b # CHECK: floor.w.s  $f6, $f8
2510xc8 0x54 0x3b 0x4b # CHECK: floor.w.d  $f6, $f8
2520xc8 0x54 0x3b 0x3b # CHECK: round.w.s  $f6, $f8
2530xc8 0x54 0x3b 0x7b # CHECK: round.w.d  $f6, $f8
2540xc8 0x54 0x3b 0x2b # CHECK: trunc.w.s  $f6, $f8
2550xc8 0x54 0x3b 0x6b # CHECK: trunc.w.d  $f6, $f8
2560x86 0x54 0x3b 0x28 # CHECK: mtc1  $4, $f6
2570x86 0x54 0x3b 0x20 # CHECK: mfc1  $4, $f6
2580x86 0x54 0x3b 0x38 # CHECK: mthc1 $4, $f6
2590x86 0x54 0x3b 0x30 # CHECK: mfhc1 $4, $f6
260