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 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1179 uint32_t trunc_big_out; | 1179 uint32_t trunc_big_out; |
1180 uint32_t trunc_small_out; | 1180 uint32_t trunc_small_out; |
1181 uint32_t cvt_big_in; | 1181 uint32_t cvt_big_in; |
1182 uint32_t cvt_small_in; | 1182 uint32_t cvt_small_in; |
1183 } T; | 1183 } T; |
1184 T t; | 1184 T t; |
1185 | 1185 |
1186 MacroAssembler assm(isolate, NULL, 0); | 1186 MacroAssembler assm(isolate, NULL, 0); |
1187 | 1187 |
1188 __ sw(a4, MemOperand(a0, offsetof(T, cvt_small_in))); | 1188 __ sw(a4, MemOperand(a0, offsetof(T, cvt_small_in))); |
1189 __ Cvt_d_uw(f10, a4, f4); | 1189 __ Cvt_d_uw(f10, a4); |
1190 __ sdc1(f10, MemOperand(a0, offsetof(T, cvt_small_out))); | 1190 __ sdc1(f10, MemOperand(a0, offsetof(T, cvt_small_out))); |
1191 | 1191 |
1192 __ Trunc_uw_d(f10, f10, f4); | 1192 __ Trunc_uw_d(f10, f10, f4); |
1193 __ swc1(f10, MemOperand(a0, offsetof(T, trunc_small_out))); | 1193 __ swc1(f10, MemOperand(a0, offsetof(T, trunc_small_out))); |
1194 | 1194 |
1195 __ sw(a4, MemOperand(a0, offsetof(T, cvt_big_in))); | 1195 __ sw(a4, MemOperand(a0, offsetof(T, cvt_big_in))); |
1196 __ Cvt_d_uw(f8, a4, f4); | 1196 __ Cvt_d_uw(f8, a4); |
1197 __ sdc1(f8, MemOperand(a0, offsetof(T, cvt_big_out))); | 1197 __ sdc1(f8, MemOperand(a0, offsetof(T, cvt_big_out))); |
1198 | 1198 |
1199 __ Trunc_uw_d(f8, f8, f4); | 1199 __ Trunc_uw_d(f8, f8, f4); |
1200 __ swc1(f8, MemOperand(a0, offsetof(T, trunc_big_out))); | 1200 __ swc1(f8, MemOperand(a0, offsetof(T, trunc_big_out))); |
1201 | 1201 |
1202 __ jr(ra); | 1202 __ jr(ra); |
1203 __ nop(); | 1203 __ nop(); |
1204 | 1204 |
1205 CodeDesc desc; | 1205 CodeDesc desc; |
1206 assm.GetCode(&desc); | 1206 assm.GetCode(&desc); |
(...skipping 4279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5486 }; | 5486 }; |
5487 | 5487 |
5488 size_t nr_test_cases = sizeof(tc) / sizeof(TestCaseBal); | 5488 size_t nr_test_cases = sizeof(tc) / sizeof(TestCaseBal); |
5489 for (size_t i = 0; i < nr_test_cases; ++i) { | 5489 for (size_t i = 0; i < nr_test_cases; ++i) { |
5490 CHECK_EQ(tc[i].expected_res, run_bal(tc[i].offset)); | 5490 CHECK_EQ(tc[i].expected_res, run_bal(tc[i].offset)); |
5491 } | 5491 } |
5492 } | 5492 } |
5493 | 5493 |
5494 | 5494 |
5495 #undef __ | 5495 #undef __ |
OLD | NEW |