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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 COMPARE(xori(a0, a1, 0x1), | 561 COMPARE(xori(a0, a1, 0x1), |
562 "38a40001 xori a0, a1, 0x1"); | 562 "38a40001 xori a0, a1, 0x1"); |
563 COMPARE(xori(v0, v1, 0xffff), | 563 COMPARE(xori(v0, v1, 0xffff), |
564 "3862ffff xori v0, v1, 0xffff"); | 564 "3862ffff xori v0, v1, 0xffff"); |
565 | 565 |
566 COMPARE(lui(a0, 0x1), | 566 COMPARE(lui(a0, 0x1), |
567 "3c040001 lui a0, 0x1"); | 567 "3c040001 lui a0, 0x1"); |
568 COMPARE(lui(v0, 0xffff), | 568 COMPARE(lui(v0, 0xffff), |
569 "3c02ffff lui v0, 0xffff"); | 569 "3c02ffff lui v0, 0xffff"); |
570 | 570 |
| 571 if (IsMipsArchVariant(kMips32r6)) { |
| 572 COMPARE(aui(a0, a1, 0x1), "3ca40001 aui a0, a1, 0x1"); |
| 573 COMPARE(aui(v0, v1, 0xffff), "3c62ffff aui v0, v1, 0xffff"); |
| 574 } |
| 575 |
571 COMPARE(sll(a0, a1, 0), | 576 COMPARE(sll(a0, a1, 0), |
572 "00052000 sll a0, a1, 0"); | 577 "00052000 sll a0, a1, 0"); |
573 COMPARE(sll(s0, s1, 8), | 578 COMPARE(sll(s0, s1, 8), |
574 "00118200 sll s0, s1, 8"); | 579 "00118200 sll s0, s1, 8"); |
575 COMPARE(sll(t2, t3, 24), | 580 COMPARE(sll(t2, t3, 24), |
576 "000b5600 sll t2, t3, 24"); | 581 "000b5600 sll t2, t3, 24"); |
577 COMPARE(sll(v0, v1, 31), | 582 COMPARE(sll(v0, v1, 31), |
578 "000317c0 sll v0, v1, 31"); | 583 "000317c0 sll v0, v1, 31"); |
579 | 584 |
580 COMPARE(sllv(a0, a1, a2), | 585 COMPARE(sllv(a0, a1, a2), |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1069 | 1074 |
1070 | 1075 |
1071 TEST(ctc1_cfc1_disasm) { | 1076 TEST(ctc1_cfc1_disasm) { |
1072 SET_UP(); | 1077 SET_UP(); |
1073 COMPARE(abs_d(f10, f31), "4620fa85 abs.d f10, f31"); | 1078 COMPARE(abs_d(f10, f31), "4620fa85 abs.d f10, f31"); |
1074 COMPARE(ceil_w_s(f8, f31), "4600fa0e ceil.w.s f8, f31"); | 1079 COMPARE(ceil_w_s(f8, f31), "4600fa0e ceil.w.s f8, f31"); |
1075 COMPARE(ctc1(a0, FCSR), "44c4f800 ctc1 a0, FCSR"); | 1080 COMPARE(ctc1(a0, FCSR), "44c4f800 ctc1 a0, FCSR"); |
1076 COMPARE(cfc1(a0, FCSR), "4444f800 cfc1 a0, FCSR"); | 1081 COMPARE(cfc1(a0, FCSR), "4444f800 cfc1 a0, FCSR"); |
1077 VERIFY_RUN(); | 1082 VERIFY_RUN(); |
1078 } | 1083 } |
OLD | NEW |