1 # RUN: llvm-mc --disassemble %s -triple=mipsel-unknown-linux -mcpu=mips32r2 | FileCheck %s 2 # CHECK: .section __TEXT,__text,regular,pure_instructions 3 # CHECK: abs.d $f12, $f14 4 0x05 0x73 0x20 0x46 5 6 # CHECK: abs.s $f6, $f7 7 0x85 0x39 0x00 0x46 8 9 # CHECK: add $9, $6, $7 10 0x20 0x48 0xc7 0x00 11 12 # CHECK: add.d $f8, $f12, $f14 13 0x00 0x62 0x2e 0x46 14 15 # CHECK: add.s $f9, $f6, $f7 16 0x40 0x32 0x07 0x46 17 18 # CHECK: addi $9, $6, 17767 19 0x67 0x45 0xc9 0x20 20 21 # CHECK: addiu $9, $6, -15001 22 0x67 0xc5 0xc9 0x24 23 24 # CHECK: addu $9, $6, $7 25 0x21 0x48 0xc7 0x00 26 27 # CHECK: and $9, $6, $7 28 0x24 0x48 0xc7 0x00 29 30 # CHECK: andi $9, $6, 17767 31 0x67 0x45 0xc9 0x30 32 33 # CHECK: b 1332 34 0x4c 0x01 0x00 0x10 35 36 # CHECK: bc1f 1332 37 0x4c 0x01 0x00 0x45 38 39 # CHECK: bc1t 1332 40 0x4c 0x01 0x01 0x45 41 42 # CHECK: beq $9, $6, 1332 43 0x4c 0x01 0x26 0x11 44 45 # CHECK: bgez $6, 1332 46 0x4c 0x01 0xc1 0x04 47 48 # CHECK: bgezal $6, 1332 49 0x4c 0x01 0xd1 0x04 50 51 # CHECK: bgtz $6, 1332 52 0x4c 0x01 0xc0 0x1c 53 54 # CHECK: blez $6, 1332 55 0x4c 0x01 0xc0 0x18 56 57 # CHECK: bne $9, $6, 1332 58 0x4c 0x01 0x26 0x15 59 60 # CHECK: c.eq.d $f12, $f14 61 0x32 0x60 0x2e 0x46 62 63 # CHECK: c.eq.s $f6, $f7 64 0x32 0x30 0x07 0x46 65 66 # CHECK: c.f.d $f12, $f14 67 0x30 0x60 0x2e 0x46 68 69 # CHECK: c.f.s $f6, $f7 70 0x30 0x30 0x07 0x46 71 72 # CHECK: c.le.d $f12, $f14 73 0x3e 0x60 0x2e 0x46 74 75 # CHECK: c.le.s $f6, $f7 76 0x3e 0x30 0x07 0x46 77 78 # CHECK: c.lt.d $f12, $f14 79 0x3c 0x60 0x2e 0x46 80 81 # CHECK: c.lt.s $f6, $f7 82 0x3c 0x30 0x07 0x46 83 84 # CHECK: c.nge.d $f12, $f14 85 0x3d 0x60 0x2e 0x46 86 87 # CHECK: c.nge.s $f6, $f7 88 0x3d 0x30 0x07 0x46 89 90 # CHECK: c.ngl.d $f12, $f14 91 0x3b 0x60 0x2e 0x46 92 93 # CHECK: c.ngl.s $f6, $f7 94 0x3b 0x30 0x07 0x46 95 96 # CHECK: c.ngle.d $f12, $f14 97 0x39 0x60 0x2e 0x46 98 99 # CHECK: c.ngle.s $f6, $f7 100 0x39 0x30 0x07 0x46 101 102 # CHECK: c.ngt.d $f12, $f14 103 0x3f 0x60 0x2e 0x46 104 105 # CHECK: c.ngt.s $f6, $f7 106 0x3f 0x30 0x07 0x46 107 108 # CHECK: c.ole.d $f12, $f14 109 0x36 0x60 0x2e 0x46 110 111 # CHECK: c.ole.s $f6, $f7 112 0x36 0x30 0x07 0x46 113 114 # CHECK: c.olt.d $f12, $f14 115 0x34 0x60 0x2e 0x46 116 117 # CHECK: c.olt.s $f6, $f7 118 0x34 0x30 0x07 0x46 119 120 # CHECK: c.seq.d $f12, $f14 121 0x3a 0x60 0x2e 0x46 122 123 # CHECK: c.seq.s $f6, $f7 124 0x3a 0x30 0x07 0x46 125 126 # CHECK: c.sf.d $f12, $f14 127 0x38 0x60 0x2e 0x46 128 129 # CHECK: c.sf.s $f6, $f7 130 0x38 0x30 0x07 0x46 131 132 # CHECK: c.ueq.d $f12, $f14 133 0x33 0x60 0x2e 0x46 134 135 # CHECK: c.ueq.s $f28, $f18 136 0x33 0xe0 0x12 0x46 137 138 # CHECK: c.ule.d $f12, $f14 139 0x37 0x60 0x2e 0x46 140 141 # CHECK: c.ule.s $f6, $f7 142 0x37 0x30 0x07 0x46 143 144 # CHECK: c.ult.d $f12, $f14 145 0x35 0x60 0x2e 0x46 146 147 # CHECK: c.ult.s $f6, $f7 148 0x35 0x30 0x07 0x46 149 150 # CHECK: c.un.d $f12, $f14 151 0x31 0x60 0x2e 0x46 152 153 # CHECK: c.un.s $f6, $f7 154 0x31 0x30 0x07 0x46 155 156 # CHECK: ceil.w.d $f12, $f14 157 0x0e 0x73 0x20 0x46 158 159 # CHECK: ceil.w.s $f6, $f7 160 0x8e 0x39 0x00 0x46 161 162 # CHECK: cfc1 $6, $7 163 0x00 0x38 0x46 0x44 164 165 # CHECK: clo $6, $7 166 0x21 0x30 0xe6 0x70 167 168 # CHECK: clz $6, $7 169 0x20 0x30 0xe6 0x70 170 171 # CHECK: ctc1 $6, $7 172 0x00 0x38 0xc6 0x44 173 174 # CHECK: cvt.d.s $f6, $f7 175 0xa1 0x39 0x00 0x46 176 177 # CHECK: cvt.d.w $f12, $f14 178 0x21 0x73 0x80 0x46 179 180 # CHECK: cvt.l.d $f12, $f14 181 0x25 0x73 0x20 0x46 182 183 # CHECK: cvt.l.s $f6, $f7 184 0xa5 0x39 0x00 0x46 185 186 # CHECK: cvt.s.d $f12, $f14 187 0x20 0x73 0x20 0x46 188 189 # CHECK: cvt.s.w $f6, $f7 190 0xa0 0x39 0x80 0x46 191 192 # CHECK: cvt.w.d $f12, $f14 193 0x24 0x73 0x20 0x46 194 195 # CHECK: cvt.w.s $f6, $f7 196 0xa4 0x39 0x00 0x46 197 198 # CHECK: floor.w.d $f12, $f14 199 0x0f 0x73 0x20 0x46 200 201 # CHECK: floor.w.s $f6, $f7 202 0x8f 0x39 0x00 0x46 203 204 # CHECK: ins $19, $9, 6, 7 205 0x84 0x61 0x33 0x7d 206 207 # CHECK: j 1328 208 0x4c 0x01 0x00 0x08 209 210 # CHECK: jal 1328 211 0x4c 0x01 0x00 0x0c 212 213 # CHECK: jalr $7 214 0x09 0xf8 0xe0 0x00 215 216 # CHECK: jr $7 217 0x08 0x00 0xe0 0x00 218 219 # CHECK: lb $4, 9158($5) 220 0xc6 0x23 0xa4 0x80 221 222 # CHECK: lbu $4, 6($5) 223 0x06 0x00 0xa4 0x90 224 225 # CHECK: ldc1 $f9, 9158($7) 226 0xc6 0x23 0xe9 0xd4 227 228 # CHECK: lh $4, 12($5) 229 0x0c 0x00 0xa4 0x84 230 231 # CHECK: lh $4, 12($5) 232 0x0c 0x00 0xa4 0x84 233 234 # CHECK: ll $9, 9158($7) 235 0xc6 0x23 0xe9 0xc0 236 237 # CHECK: lui $6, 17767 238 0x67 0x45 0x06 0x3c 239 240 # CHECK: lw $4, 24($5) 241 0x18 0x00 0xa4 0x8c 242 243 # CHECK: lwc1 $f9, 9158($7) 244 0xc6 0x23 0xe9 0xc4 245 246 # CHECK: lwl $2, 3($4) 247 0x03 0x00 0x82 0x88 248 249 # CHECK: lwr $3, 16($5) 250 0x10 0x00 0xa3 0x98 251 252 # CHECK: madd $6, $7 253 0x00 0x00 0xc7 0x70 254 255 # CHECK: maddu $6, $7 256 0x01 0x00 0xc7 0x70 257 258 # CHECK: mfc1 $6, $f7 259 0x00 0x38 0x06 0x44 260 261 # CHECK: mfhi $5 262 0x10 0x28 0x00 0x00 263 264 # CHECK: mflo $5 265 0x12 0x28 0x00 0x00 266 267 # CHECK: mov.d $f6, $f8 268 0x86 0x41 0x20 0x46 269 270 # CHECK: mov.s $f6, $f7 271 0x86 0x39 0x00 0x46 272 273 # CHECK: msub $6, $7 274 0x04 0x00 0xc7 0x70 275 276 # CHECK: msubu $6, $7 277 0x05 0x00 0xc7 0x70 278 279 # CHECK: mtc1 $6, $f7 280 0x00 0x38 0x86 0x44 281 282 # CHECK: mthi $7 283 0x11 0x00 0xe0 0x00 284 285 # CHECK: mtlo $7 286 0x13 0x00 0xe0 0x00 287 288 # CHECK: mul.d $f8, $f12, $f14 289 0x02 0x62 0x2e 0x46 290 291 # CHECK: mul.s $f9, $f6, $f7 292 0x42 0x32 0x07 0x46 293 294 # CHECK: mul $9, $6, $7 295 0x02 0x48 0xc7 0x70 296 297 # CHECK: mult $3, $5 298 0x18 0x00 0x65 0x00 299 300 # CHECK: multu $3, $5 301 0x19 0x00 0x65 0x00 302 303 # CHECK: neg.d $f12, $f14 304 0x07 0x73 0x20 0x46 305 306 # CHECK: neg.s $f6, $f7 307 0x87 0x39 0x00 0x46 308 309 # CHECK: nop 310 0x00 0x00 0x00 0x00 311 312 # CHECK: nor $9, $6, $7 313 0x27 0x48 0xc7 0x00 314 315 # CHECK: or $3, $3, $5 316 0x25 0x18 0x65 0x00 317 318 # CHECK: ori $9, $6, 17767 319 0x67 0x45 0xc9 0x34 320 321 # CHECK: rotr $9, $6, 7 322 0xc2 0x49 0x26 0x00 323 324 # CHECK: rotrv $9, $6, $7 325 0x46 0x48 0xe6 0x00 326 327 # CHECK: round.w.d $f12, $f14 328 0x0c 0x73 0x20 0x46 329 330 # CHECK: round.w.s $f6, $f7 331 0x8c 0x39 0x00 0x46 332 333 # CHECK: sb $4, 9158($5) 334 0xc6 0x23 0xa4 0xa0 335 336 # CHECK: sb $4, 6($5) 337 0x06 0x00 0xa4 0xa0 338 339 # CHECK: sc $9, 9158($7) 340 0xc6 0x23 0xe9 0xe0 341 342 # CHECK: sdc1 $f9, 9158($7) 343 0xc6 0x23 0xe9 0xf4 344 345 # CHECK: seb $6, $7 346 0x20 0x34 0x07 0x7c 347 348 # CHECK: seh $6, $7 349 0x20 0x36 0x07 0x7c 350 351 # CHECK: sh $4, 9158($5) 352 0xc6 0x23 0xa4 0xa4 353 354 # CHECK: sll $4, $3, 7 355 0xc0 0x21 0x03 0x00 356 357 # CHECK: sllv $2, $3, $5 358 0x04 0x10 0xa3 0x00 359 360 # CHECK: slt $3, $3, $5 361 0x2a 0x18 0x65 0x00 362 363 # CHECK: slti $3, $3, 103 364 0x67 0x00 0x63 0x28 365 366 # CHECK: sltiu $3, $3, 103 367 0x67 0x00 0x63 0x2c 368 369 # CHECK: sltu $3, $3, $5 370 0x2b 0x18 0x65 0x00 371 372 # CHECK: sqrt.d $f12, $f14 373 0x04 0x73 0x20 0x46 374 375 # CHECK: sqrt.s $f6, $f7 376 0x84 0x39 0x00 0x46 377 378 # CHECK: sra $4, $3, 7 379 0xc3 0x21 0x03 0x00 380 381 # CHECK: srav $2, $3, $5 382 0x07 0x10 0xa3 0x00 383 384 # CHECK: srl $4, $3, 7 385 0xc2 0x21 0x03 0x00 386 387 # CHECK: srlv $2, $3, $5 388 0x06 0x10 0xa3 0x00 389 390 # CHECK: sub.d $f8, $f12, $f14 391 0x01 0x62 0x2e 0x46 392 393 # CHECK: sub.s $f9, $f6, $f7 394 0x41 0x32 0x07 0x46 395 396 # CHECK: sub $9, $6, $7 397 0x22 0x48 0xc7 0x00 398 399 # CHECK: subu $4, $3, $5 400 0x23 0x20 0x65 0x00 401 402 # CHECK: sw $4, 24($5) 403 0x18 0x00 0xa4 0xac 404 405 # CHECK: swc1 $f9, 9158($7) 406 0xc6 0x23 0xe9 0xe4 407 408 # CHECK: swl $4, 16($5) 409 0x10 0x00 0xa4 0xa8 410 411 # CHECK: swr $6, 16($7) 412 0x10 0x00 0xe6 0xb8 413 414 # CHECK: sync 7 415 0xcf 0x01 0x00 0x00 416 417 # CHECK: trunc.w.d $f12, $f14 418 0x0d 0x73 0x20 0x46 419 420 # CHECK: trunc.w.s $f6, $f7 421 0x8d 0x39 0x00 0x46 422 423 # CHECK: wsbh $6, $7 424 0xa0 0x30 0x07 0x7c 425 426 # CHECK: xor $3, $3, $5 427 0x26 0x18 0x65 0x00 428 429 # CHECK: xori $9, $6, 17767 430 0x67 0x45 0xc9 0x38 431