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