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 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1083 | 1083 |
1084 | 1084 |
1085 TEST(ctc1_cfc1_disasm) { | 1085 TEST(ctc1_cfc1_disasm) { |
1086 SET_UP(); | 1086 SET_UP(); |
1087 COMPARE(abs_d(f10, f31), "4620fa85 abs.d f10, f31"); | 1087 COMPARE(abs_d(f10, f31), "4620fa85 abs.d f10, f31"); |
1088 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"); |
1089 COMPARE(ctc1(a0, FCSR), "44c4f800 ctc1 a0, FCSR"); | 1089 COMPARE(ctc1(a0, FCSR), "44c4f800 ctc1 a0, FCSR"); |
1090 COMPARE(cfc1(a0, FCSR), "4444f800 cfc1 a0, FCSR"); | 1090 COMPARE(cfc1(a0, FCSR), "4444f800 cfc1 a0, FCSR"); |
1091 VERIFY_RUN(); | 1091 VERIFY_RUN(); |
1092 } | 1092 } |
| 1093 |
| 1094 TEST(madd_msub_maddf_msubf) { |
| 1095 SET_UP(); |
| 1096 if (IsMipsArchVariant(kMips32r2)) { |
| 1097 COMPARE(madd_s(f4, f6, f8, f10), "4cca4120 madd.s f4, f6, f8, f10"); |
| 1098 COMPARE(madd_d(f4, f6, f8, f10), "4cca4121 madd.d f4, f6, f8, f10"); |
| 1099 COMPARE(msub_s(f4, f6, f8, f10), "4cca4128 msub.s f4, f6, f8, f10"); |
| 1100 COMPARE(msub_d(f4, f6, f8, f10), "4cca4129 msub.d f4, f6, f8, f10"); |
| 1101 } |
| 1102 if (IsMipsArchVariant(kMips32r6)) { |
| 1103 COMPARE(maddf_s(f4, f8, f10), "460a4118 maddf.s f4, f8, f10"); |
| 1104 COMPARE(maddf_d(f4, f8, f10), "462a4118 maddf.d f4, f8, f10"); |
| 1105 COMPARE(msubf_s(f4, f8, f10), "460a4119 msubf.s f4, f8, f10"); |
| 1106 COMPARE(msubf_d(f4, f8, f10), "462a4119 msubf.d f4, f8, f10"); |
| 1107 } |
| 1108 VERIFY_RUN(); |
| 1109 } |
OLD | NEW |