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 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
771 COMPARE(clz(a0, a1), | 771 COMPARE(clz(a0, a1), |
772 "70a42020 clz a0, a1"); | 772 "70a42020 clz a0, a1"); |
773 COMPARE(clz(s6, s7), | 773 COMPARE(clz(s6, s7), |
774 "72f6b020 clz s6, s7"); | 774 "72f6b020 clz s6, s7"); |
775 COMPARE(clz(v0, v1), | 775 COMPARE(clz(v0, v1), |
776 "70621020 clz v0, v1"); | 776 "70621020 clz v0, v1"); |
777 } | 777 } |
778 } | 778 } |
779 | 779 |
780 if (IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) { | 780 if (IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) { |
| 781 COMPARE(seb(a0, a1), "7c052420 seb a0, a1"); |
| 782 COMPARE(seb(s6, s7), "7c17b420 seb s6, s7"); |
| 783 COMPARE(seb(v0, v1), "7c031420 seb v0, v1"); |
| 784 |
| 785 COMPARE(seh(a0, a1), "7c052620 seh a0, a1"); |
| 786 COMPARE(seh(s6, s7), "7c17b620 seh s6, s7"); |
| 787 COMPARE(seh(v0, v1), "7c031620 seh v0, v1"); |
| 788 |
| 789 COMPARE(wsbh(a0, a1), "7c0520a0 wsbh a0, a1"); |
| 790 COMPARE(wsbh(s6, s7), "7c17b0a0 wsbh s6, s7"); |
| 791 COMPARE(wsbh(v0, v1), "7c0310a0 wsbh v0, v1"); |
| 792 } |
| 793 |
| 794 if (IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) { |
781 COMPARE(ins_(a0, a1, 31, 1), | 795 COMPARE(ins_(a0, a1, 31, 1), |
782 "7ca4ffc4 ins a0, a1, 31, 1"); | 796 "7ca4ffc4 ins a0, a1, 31, 1"); |
783 COMPARE(ins_(s6, s7, 30, 2), | 797 COMPARE(ins_(s6, s7, 30, 2), |
784 "7ef6ff84 ins s6, s7, 30, 2"); | 798 "7ef6ff84 ins s6, s7, 30, 2"); |
785 COMPARE(ins_(v0, v1, 0, 32), | 799 COMPARE(ins_(v0, v1, 0, 32), |
786 "7c62f804 ins v0, v1, 0, 32"); | 800 "7c62f804 ins v0, v1, 0, 32"); |
787 COMPARE(ext_(a0, a1, 31, 1), | 801 COMPARE(ext_(a0, a1, 31, 1), |
788 "7ca407c0 ext a0, a1, 31, 1"); | 802 "7ca407c0 ext a0, a1, 31, 1"); |
789 COMPARE(ext_(s6, s7, 30, 2), | 803 COMPARE(ext_(s6, s7, 30, 2), |
790 "7ef60f80 ext s6, s7, 30, 2"); | 804 "7ef60f80 ext s6, s7, 30, 2"); |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1069 | 1083 |
1070 | 1084 |
1071 TEST(ctc1_cfc1_disasm) { | 1085 TEST(ctc1_cfc1_disasm) { |
1072 SET_UP(); | 1086 SET_UP(); |
1073 COMPARE(abs_d(f10, f31), "4620fa85 abs.d f10, f31"); | 1087 COMPARE(abs_d(f10, f31), "4620fa85 abs.d f10, f31"); |
1074 COMPARE(ceil_w_s(f8, f31), "4600fa0e ceil.w.s f8, f31"); | 1088 COMPARE(ceil_w_s(f8, f31), "4600fa0e ceil.w.s f8, f31"); |
1075 COMPARE(ctc1(a0, FCSR), "44c4f800 ctc1 a0, FCSR"); | 1089 COMPARE(ctc1(a0, FCSR), "44c4f800 ctc1 a0, FCSR"); |
1076 COMPARE(cfc1(a0, FCSR), "4444f800 cfc1 a0, FCSR"); | 1090 COMPARE(cfc1(a0, FCSR), "4444f800 cfc1 a0, FCSR"); |
1077 VERIFY_RUN(); | 1091 VERIFY_RUN(); |
1078 } | 1092 } |
OLD | NEW |