OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 COMPARE(xori(a0, a1, 0x1), | 398 COMPARE(xori(a0, a1, 0x1), |
399 "38a40001 xori a0, a1, 0x1"); | 399 "38a40001 xori a0, a1, 0x1"); |
400 COMPARE(xori(v0, v1, 0xffff), | 400 COMPARE(xori(v0, v1, 0xffff), |
401 "3862ffff xori v0, v1, 0xffff"); | 401 "3862ffff xori v0, v1, 0xffff"); |
402 | 402 |
403 COMPARE(lui(a0, 0x1), | 403 COMPARE(lui(a0, 0x1), |
404 "3c040001 lui a0, 0x1"); | 404 "3c040001 lui a0, 0x1"); |
405 COMPARE(lui(v0, 0xffff), | 405 COMPARE(lui(v0, 0xffff), |
406 "3c02ffff lui v0, 0xffff"); | 406 "3c02ffff lui v0, 0xffff"); |
407 | 407 |
| 408 if (kArchVariant == (kMips64r6)) { |
| 409 COMPARE(aui(a0, a1, 0x1), "3ca40001 aui a0, a1, 0x1"); |
| 410 COMPARE(aui(v0, v1, 0xffff), "3c62ffff aui v0, v1, 0xffff"); |
| 411 |
| 412 COMPARE(daui(a0, a1, 0x1), "74a40001 daui a0, a1, 0x1"); |
| 413 COMPARE(daui(v0, v1, 0xffff), "7462ffff daui v0, v1, 0xffff"); |
| 414 |
| 415 COMPARE(dahi(a0, 0x1), "04860001 dahi a0, 0x1"); |
| 416 COMPARE(dahi(v0, 0xffff), "0446ffff dahi v0, 0xffff"); |
| 417 |
| 418 COMPARE(dati(a0, 0x1), "049e0001 dati a0, 0x1"); |
| 419 COMPARE(dati(v0, 0xffff), "045effff dati v0, 0xffff"); |
| 420 } |
| 421 |
408 COMPARE(sll(a0, a1, 0), | 422 COMPARE(sll(a0, a1, 0), |
409 "00052000 sll a0, a1, 0"); | 423 "00052000 sll a0, a1, 0"); |
410 COMPARE(sll(s0, s1, 8), | 424 COMPARE(sll(s0, s1, 8), |
411 "00118200 sll s0, s1, 8"); | 425 "00118200 sll s0, s1, 8"); |
412 COMPARE(sll(a6, a7, 24), | 426 COMPARE(sll(a6, a7, 24), |
413 "000b5600 sll a6, a7, 24"); | 427 "000b5600 sll a6, a7, 24"); |
414 COMPARE(sll(v0, v1, 31), | 428 COMPARE(sll(v0, v1, 31), |
415 "000317c0 sll v0, v1, 31"); | 429 "000317c0 sll v0, v1, 31"); |
416 COMPARE(dsll(a0, a1, 0), | 430 COMPARE(dsll(a0, a1, 0), |
417 "00052038 dsll a0, a1, 0"); | 431 "00052038 dsll a0, a1, 0"); |
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1245 | 1259 |
1246 | 1260 |
1247 TEST(ctc1_cfc1_disasm) { | 1261 TEST(ctc1_cfc1_disasm) { |
1248 SET_UP(); | 1262 SET_UP(); |
1249 COMPARE(abs_d(f10, f31), "4620fa85 abs.d f10, f31"); | 1263 COMPARE(abs_d(f10, f31), "4620fa85 abs.d f10, f31"); |
1250 COMPARE(ceil_w_s(f8, f31), "4600fa0e ceil.w.s f8, f31"); | 1264 COMPARE(ceil_w_s(f8, f31), "4600fa0e ceil.w.s f8, f31"); |
1251 COMPARE(ctc1(a0, FCSR), "44c4f800 ctc1 a0, FCSR"); | 1265 COMPARE(ctc1(a0, FCSR), "44c4f800 ctc1 a0, FCSR"); |
1252 COMPARE(cfc1(a0, FCSR), "4444f800 cfc1 a0, FCSR"); | 1266 COMPARE(cfc1(a0, FCSR), "4444f800 cfc1 a0, FCSR"); |
1253 VERIFY_RUN(); | 1267 VERIFY_RUN(); |
1254 } | 1268 } |
OLD | NEW |