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: addu $9, $6, $7 200xe6 0x00 0x50 0x49 21 22# CHECK: sub $9, $6, $7 230xe6 0x00 0x90 0x49 24 25# CHECK: subu $4, $3, $5 260xa3 0x00 0xd0 0x21 27 28# CHECK: sub $6, $zero, $7 290xe0 0x00 0x90 0x31 30 31# CHECK: subu $6, $zero, $7 320xe0 0x00 0xd0 0x31 33 34# CHECK: addu $7, $8, $zero 350x08 0x00 0x50 0x39 36 37# CHECK: slt $3, $3, $5 380xa3 0x00 0x50 0x1b 39 40# CHECK: slti $3, $3, 103 410x63 0x90 0x67 0x00 42 43# CHECK: slti $3, $3, 103 440x63 0x90 0x67 0x00 45 46# CHECK: sltiu $3, $3, 103 470x63 0xb0 0x67 0x00 48 49# CHECK: sltu $3, $3, $5 500xa3 0x00 0x90 0x1b 51 52# CHECK: lui $9, 17767 530xa9 0x41 0x67 0x45 54 55# CHECK: and $9, $6, $7 560xe6 0x00 0x50 0x4a 57 58# CHECK: andi $9, $6, 17767 590x26 0xd1 0x67 0x45 60 61# CHECK: andi $9, $6, 17767 620x26 0xd1 0x67 0x45 63 64# CHECK: or $3, $4, $5 650xa4 0x00 0x90 0x1a 66 67# CHECK: ori $9, $6, 17767 680x26 0x51 0x67 0x45 69 70# CHECK: xor $3, $3, $5 710xa3 0x00 0x10 0x1b 72 73# CHECK: xori $9, $6, 17767 740x26 0x71 0x67 0x45 75 76# CHECK: xori $9, $6, 17767 770x26 0x71 0x67 0x45 78 79# CHECK: nor $9, $6, $7 800xe6 0x00 0xd0 0x4a 81 82# CHECK: not $7, $8 830x08 0x00 0xd0 0x3a 84 85# CHECK: mul $9, $6, $7 860xe6 0x00 0x10 0x4a 87 88# CHECK: mult $9, $7 890xe9 0x00 0x3c 0x8b 90 91# CHECK: multu $9, $7 920xe9 0x00 0x3c 0x9b 93 94# CHECK: div $zero, $9, $7 950xe9 0x00 0x3c 0xab 96 97# CHECK: divu $zero, $9, $7 980xe9 0x00 0x3c 0xbb 99 100# CHECK: sll $4, $3, 7 1010x83 0x00 0x00 0x38 102 103# CHECK: sllv $2, $3, $5 1040x65 0x00 0x10 0x10 105 106# CHECK: sra $4, $3, 7 1070x83 0x00 0x80 0x38 108 109# CHECK: srav $2, $3, $5 1100x65 0x00 0x90 0x10 111 112# CHECK: srl $4, $3, 7 1130x83 0x00 0x40 0x38 114 115# CHECK: srlv $2, $3, $5 1160x65 0x00 0x50 0x10 117 118# CHECK: rotr $9, $6, 7 1190x26 0x01 0xc0 0x38 120 121# CHECK: rotrv $9, $6, $7 1220xc7 0x00 0xd0 0x48 123 124# CHECK: lb $5, 8($4) 1250xa4 0x1c 0x08 0x00 126 127# CHECK: lbu $6, 8($4) 1280xc4 0x14 0x08 0x00 129 130# CHECK: lh $2, 8($4) 1310x44 0x3c 0x08 0x00 132 133# CHECK: lhu $4, 8($2) 1340x82 0x34 0x08 0x00 135 136# CHECK: lw $6, 4($5) 1370xc5 0xfc 0x04 0x00 138 139# CHECK: sb $5, 8($4) 1400xa4 0x18 0x08 0x00 141 142# CHECK: sh $2, 8($4) 1430x44 0x38 0x08 0x00 144 145# CHECK: sw $5, 4($6) 1460xa6 0xf8 0x04 0x00 147 148# CHECK: lwu $2, 8($4) 1490x44 0x60 0x08 0xe0 150 151# CHECK: lwl $4, 16($5) 1520x85 0x60 0x10 0x00 153 154# CHECK: lwr $4, 16($5) 1550x85 0x60 0x10 0x10 156 157# CHECK: swl $4, 16($5) 1580x85 0x60 0x10 0x80 159 160# CHECK: swr $4, 16($5) 1610x85 0x60 0x10 0x90 162 163# CHECK: movz $9, $6, $7 1640xe6 0x00 0x58 0x48 165 166# CHECK: movn $9, $6, $7 1670xe6 0x00 0x18 0x48 168 169# CHECK: movt $9, $6, $fcc0 1700x26 0x55 0x7b 0x09 171 172# CHECK: movf $9, $6, $fcc0 1730x26 0x55 0x7b 0x01 174 175# CHECK: mthi $6 1760x06 0x00 0x7c 0x2d 177 178# CHECK: mfhi $6 1790x06 0x00 0x7c 0x0d 180 181# CHECK: mtlo $6 1820x06 0x00 0x7c 0x3d 183 184# CHECK: mflo $6 1850x06 0x00 0x7c 0x1d 186 187# CHECK: madd $4, $5 1880xa4 0x00 0x3c 0xcb 189 190# CHECK: maddu $4, $5 1910xa4 0x00 0x3c 0xdb 192 193# CHECK: msub $4, $5 1940xa4 0x00 0x3c 0xeb 195 196# CHECK: msubu $4, $5 1970xa4 0x00 0x3c 0xfb 198 199# CHECK: clz $9, $6 2000x26 0x01 0x3c 0x5b 201 202# CHECK: clo $9, $6 2030x26 0x01 0x3c 0x4b 204 205# CHECK: seb $9, $6 2060x26 0x01 0x3c 0x2b 207 208# CHECK: seh $9, $6 2090x26 0x01 0x3c 0x3b 210 211# CHECK: wsbh $9, $6 2120x26 0x01 0x3c 0x7b 213 214# CHECK: ext $9, $6, 3, 7 2150x26 0x01 0xec 0x30 216 217# CHECK: ins $9, $6, 3, 7 2180x26 0x01 0xcc 0x48 219 220# CHECK: j 1328 2210x00 0xd4 0x98 0x02 222 223# CHECK: jal 1328 2240x00 0xf4 0x98 0x02 225 226# CHECK: jalr $ra, $6 2270xe6 0x03 0x3c 0x0f 228 229# CHECK: jr $7 2300x07 0x00 0x3c 0x0f 231 232# CHECK: beq $9, $6, 1332 2330xc9 0x94 0x9a 0x02 234 235# CHECK: bgez $6, 1332 2360x46 0x40 0x9a 0x02 237 238# CHECK: bgezal $6, 1332 2390x66 0x40 0x9a 0x02 240 241# CHECK: bltzal $6, 1332 2420x26 0x40 0x9a 0x02 243 244# CHECK: bgtz $6, 1332 2450xc6 0x40 0x9a 0x02 246 247# CHECK: blez $6, 1332 2480x86 0x40 0x9a 0x02 249 250# CHECK: bne $9, $6, 1332 2510xc9 0xb4 0x9a 0x02 252 253# CHECK: bltz $6, 1332 2540x06 0x40 0x9a 0x02 255 256# CHECK: teq $8, $9, 0 2570x28 0x01 0x3c 0x00 258 259# CHECK: tge $8, $9, 0 2600x28 0x01 0x3c 0x02 261 262# CHECK: tgeu $8, $9, 0 2630x28 0x01 0x3c 0x04 264 265# CHECK: tlt $8, $9, 0 2660x28 0x01 0x3c 0x08 267 268# CHECK: tltu $8, $9, 0 2690x28 0x01 0x3c 0x0a 270 271# CHECK: tne $8, $9, 0 2720x28 0x01 0x3c 0x0c 273 274# CHECK: teqi $9, 17767 2750xc9 0x41 0x67 0x45 276 277# CHECK: tgei $9, 17767 2780x29 0x41 0x67 0x45 279 280# CHECK: tgeiu $9, 17767 2810x69 0x41 0x67 0x45 282 283# CHECK: tlti $9, 17767 2840x09 0x41 0x67 0x45 285 286# CHECK: tltiu $9, 17767 2870x49 0x41 0x67 0x45 288 289# CHECK: tnei $9, 17767 2900x89 0x41 0x67 0x45 291 292# CHECK: ll $2, 8($4) 2930x44 0x60 0x08 0x30 294 295# CHECK: sc $2, 8($4) 2960x44 0x60 0x08 0xb0 297