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