| 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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 "03c31007 srav v0, v1, fp"); | 523 "03c31007 srav v0, v1, fp"); |
| 524 COMPARE(dsrav(a0, a1, a2), | 524 COMPARE(dsrav(a0, a1, a2), |
| 525 "00c52017 dsrav a0, a1, a2"); | 525 "00c52017 dsrav a0, a1, a2"); |
| 526 COMPARE(dsrav(s0, s1, s2), | 526 COMPARE(dsrav(s0, s1, s2), |
| 527 "02518017 dsrav s0, s1, s2"); | 527 "02518017 dsrav s0, s1, s2"); |
| 528 COMPARE(dsrav(a6, a7, t0), | 528 COMPARE(dsrav(a6, a7, t0), |
| 529 "018b5017 dsrav a6, a7, t0"); | 529 "018b5017 dsrav a6, a7, t0"); |
| 530 COMPARE(dsrav(v0, v1, fp), | 530 COMPARE(dsrav(v0, v1, fp), |
| 531 "03c31017 dsrav v0, v1, fp"); | 531 "03c31017 dsrav v0, v1, fp"); |
| 532 | 532 |
| 533 if (kArchVariant == kMips64r2) { | 533 COMPARE(rotr(a0, a1, 0), "00252002 rotr a0, a1, 0"); |
| 534 COMPARE(rotr(a0, a1, 0), | 534 COMPARE(rotr(s0, s1, 8), "00318202 rotr s0, s1, 8"); |
| 535 "00252002 rotr a0, a1, 0"); | 535 COMPARE(rotr(a6, a7, 24), "002b5602 rotr a6, a7, 24"); |
| 536 COMPARE(rotr(s0, s1, 8), | 536 COMPARE(rotr(v0, v1, 31), "002317c2 rotr v0, v1, 31"); |
| 537 "00318202 rotr s0, s1, 8"); | 537 COMPARE(drotr(a0, a1, 0), "0025203a drotr a0, a1, 0"); |
| 538 COMPARE(rotr(a6, a7, 24), | 538 COMPARE(drotr(s0, s1, 8), "0031823a drotr s0, s1, 8"); |
| 539 "002b5602 rotr a6, a7, 24"); | 539 COMPARE(drotr(a6, a7, 24), "002b563a drotr a6, a7, 24"); |
| 540 COMPARE(rotr(v0, v1, 31), | 540 COMPARE(drotr(v0, v1, 31), "002317fa drotr v0, v1, 31"); |
| 541 "002317c2 rotr v0, v1, 31"); | |
| 542 COMPARE(drotr(a0, a1, 0), | |
| 543 "0025203a drotr a0, a1, 0"); | |
| 544 COMPARE(drotr(s0, s1, 8), | |
| 545 "0031823a drotr s0, s1, 8"); | |
| 546 COMPARE(drotr(a6, a7, 24), | |
| 547 "002b563a drotr a6, a7, 24"); | |
| 548 COMPARE(drotr(v0, v1, 31), | |
| 549 "002317fa drotr v0, v1, 31"); | |
| 550 | 541 |
| 551 COMPARE(rotrv(a0, a1, a2), | 542 COMPARE(drotr32(a0, a1, 0), "0025203e drotr32 a0, a1, 0"); |
| 552 "00c52046 rotrv a0, a1, a2"); | 543 COMPARE(drotr32(s0, s1, 8), "0031823e drotr32 s0, s1, 8"); |
| 553 COMPARE(rotrv(s0, s1, s2), | 544 COMPARE(drotr32(a6, a7, 24), "002b563e drotr32 a6, a7, 24"); |
| 554 "02518046 rotrv s0, s1, s2"); | 545 COMPARE(drotr32(v0, v1, 31), "002317fe drotr32 v0, v1, 31"); |
| 555 COMPARE(rotrv(a6, a7, t0), | 546 |
| 556 "018b5046 rotrv a6, a7, t0"); | 547 COMPARE(rotrv(a0, a1, a2), "00c52046 rotrv a0, a1, a2"); |
| 557 COMPARE(rotrv(v0, v1, fp), | 548 COMPARE(rotrv(s0, s1, s2), "02518046 rotrv s0, s1, s2"); |
| 558 "03c31046 rotrv v0, v1, fp"); | 549 COMPARE(rotrv(a6, a7, t0), "018b5046 rotrv a6, a7, t0"); |
| 559 COMPARE(drotrv(a0, a1, a2), | 550 COMPARE(rotrv(v0, v1, fp), "03c31046 rotrv v0, v1, fp"); |
| 560 "00c52056 drotrv a0, a1, a2"); | 551 COMPARE(drotrv(a0, a1, a2), "00c52056 drotrv a0, a1, a2"); |
| 561 COMPARE(drotrv(s0, s1, s2), | 552 COMPARE(drotrv(s0, s1, s2), "02518056 drotrv s0, s1, s2"); |
| 562 "02518056 drotrv s0, s1, s2"); | 553 COMPARE(drotrv(a6, a7, t0), "018b5056 drotrv a6, a7, t0"); |
| 563 COMPARE(drotrv(a6, a7, t0), | 554 COMPARE(drotrv(v0, v1, fp), "03c31056 drotrv v0, v1, fp"); |
| 564 "018b5056 drotrv a6, a7, t0"); | |
| 565 COMPARE(drotrv(v0, v1, fp), | |
| 566 "03c31056 drotrv v0, v1, fp"); | |
| 567 } | |
| 568 | 555 |
| 569 COMPARE(break_(0), | 556 COMPARE(break_(0), |
| 570 "0000000d break, code: 0x00000 (0)"); | 557 "0000000d break, code: 0x00000 (0)"); |
| 571 COMPARE(break_(261120), | 558 COMPARE(break_(261120), |
| 572 "00ff000d break, code: 0x3fc00 (261120)"); | 559 "00ff000d break, code: 0x3fc00 (261120)"); |
| 573 COMPARE(break_(1047552), | 560 COMPARE(break_(1047552), |
| 574 "03ff000d break, code: 0xffc00 (1047552)"); | 561 "03ff000d break, code: 0xffc00 (1047552)"); |
| 575 | 562 |
| 576 COMPARE(tge(a0, a1, 0), | 563 COMPARE(tge(a0, a1, 0), |
| 577 "00850030 tge a0, a1, code: 0x000"); | 564 "00850030 tge a0, a1, code: 0x000"); |
| (...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1260 | 1247 |
| 1261 | 1248 |
| 1262 TEST(ctc1_cfc1_disasm) { | 1249 TEST(ctc1_cfc1_disasm) { |
| 1263 SET_UP(); | 1250 SET_UP(); |
| 1264 COMPARE(abs_d(f10, f31), "4620fa85 abs.d f10, f31"); | 1251 COMPARE(abs_d(f10, f31), "4620fa85 abs.d f10, f31"); |
| 1265 COMPARE(ceil_w_s(f8, f31), "4600fa0e ceil.w.s f8, f31"); | 1252 COMPARE(ceil_w_s(f8, f31), "4600fa0e ceil.w.s f8, f31"); |
| 1266 COMPARE(ctc1(a0, FCSR), "44c4f800 ctc1 a0, FCSR"); | 1253 COMPARE(ctc1(a0, FCSR), "44c4f800 ctc1 a0, FCSR"); |
| 1267 COMPARE(cfc1(a0, FCSR), "4444f800 cfc1 a0, FCSR"); | 1254 COMPARE(cfc1(a0, FCSR), "4444f800 cfc1 a0, FCSR"); |
| 1268 VERIFY_RUN(); | 1255 VERIFY_RUN(); |
| 1269 } | 1256 } |
| OLD | NEW |