| 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 2113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2124 float outputs_S[kTableLength] = { | 2124 float outputs_S[kTableLength] = { |
| 2125 4.8, 4.8, -4.8, -0.29 | 2125 4.8, 4.8, -4.8, -0.29 |
| 2126 }; | 2126 }; |
| 2127 double outputs_D[kTableLength] = { | 2127 double outputs_D[kTableLength] = { |
| 2128 5.3, -5.3, 5.3, -2.9 | 2128 5.3, -5.3, 5.3, -2.9 |
| 2129 }; | 2129 }; |
| 2130 | 2130 |
| 2131 __ ldc1(f2, MemOperand(a0, offsetof(TestFloat, a)) ); | 2131 __ ldc1(f2, MemOperand(a0, offsetof(TestFloat, a)) ); |
| 2132 __ lwc1(f6, MemOperand(a0, offsetof(TestFloat, c)) ); | 2132 __ lwc1(f6, MemOperand(a0, offsetof(TestFloat, c)) ); |
| 2133 __ lw(t0, MemOperand(a0, offsetof(TestFloat, rt)) ); | 2133 __ lw(t0, MemOperand(a0, offsetof(TestFloat, rt)) ); |
| 2134 __ li(t1, 0x0); | 2134 __ Move(f12, 0.0); |
| 2135 __ mtc1(t1, f12); | 2135 __ Move(f10, 0.0); |
| 2136 __ mtc1(t1, f10); | 2136 __ Move(f16, 0.0); |
| 2137 __ mtc1(t1, f16); | 2137 __ Move(f14, 0.0); |
| 2138 __ mtc1(t1, f14); | |
| 2139 __ sdc1(f12, MemOperand(a0, offsetof(TestFloat, bold)) ); | 2138 __ sdc1(f12, MemOperand(a0, offsetof(TestFloat, bold)) ); |
| 2140 __ swc1(f10, MemOperand(a0, offsetof(TestFloat, dold)) ); | 2139 __ swc1(f10, MemOperand(a0, offsetof(TestFloat, dold)) ); |
| 2141 __ sdc1(f16, MemOperand(a0, offsetof(TestFloat, bold1)) ); | 2140 __ sdc1(f16, MemOperand(a0, offsetof(TestFloat, bold1)) ); |
| 2142 __ swc1(f14, MemOperand(a0, offsetof(TestFloat, dold1)) ); | 2141 __ swc1(f14, MemOperand(a0, offsetof(TestFloat, dold1)) ); |
| 2143 __ movz_s(f10, f6, t0); | 2142 __ movz_s(f10, f6, t0); |
| 2144 __ movz_d(f12, f2, t0); | 2143 __ movz_d(f12, f2, t0); |
| 2145 __ movn_s(f14, f6, t0); | 2144 __ movn_s(f14, f6, t0); |
| 2146 __ movn_d(f16, f2, t0); | 2145 __ movn_d(f16, f2, t0); |
| 2147 __ swc1(f10, MemOperand(a0, offsetof(TestFloat, d)) ); | 2146 __ swc1(f10, MemOperand(a0, offsetof(TestFloat, d)) ); |
| 2148 __ sdc1(f12, MemOperand(a0, offsetof(TestFloat, b)) ); | 2147 __ sdc1(f12, MemOperand(a0, offsetof(TestFloat, b)) ); |
| (...skipping 3338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5487 }; | 5486 }; |
| 5488 | 5487 |
| 5489 size_t nr_test_cases = sizeof(tc) / sizeof(TestCaseBal); | 5488 size_t nr_test_cases = sizeof(tc) / sizeof(TestCaseBal); |
| 5490 for (size_t i = 0; i < nr_test_cases; ++i) { | 5489 for (size_t i = 0; i < nr_test_cases; ++i) { |
| 5491 CHECK_EQ(tc[i].expected_res, run_bal(tc[i].offset)); | 5490 CHECK_EQ(tc[i].expected_res, run_bal(tc[i].offset)); |
| 5492 } | 5491 } |
| 5493 } | 5492 } |
| 5494 | 5493 |
| 5495 | 5494 |
| 5496 #undef __ | 5495 #undef __ |
| OLD | NEW |