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