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 1979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1990 float outputs_S[kTableLength] = { | 1990 float outputs_S[kTableLength] = { |
1991 4.8, 4.8, -4.8, -0.29 | 1991 4.8, 4.8, -4.8, -0.29 |
1992 }; | 1992 }; |
1993 double outputs_D[kTableLength] = { | 1993 double outputs_D[kTableLength] = { |
1994 5.3, -5.3, 5.3, -2.9 | 1994 5.3, -5.3, 5.3, -2.9 |
1995 }; | 1995 }; |
1996 | 1996 |
1997 __ ldc1(f2, MemOperand(a0, offsetof(TestFloat, a)) ); | 1997 __ ldc1(f2, MemOperand(a0, offsetof(TestFloat, a)) ); |
1998 __ lwc1(f6, MemOperand(a0, offsetof(TestFloat, c)) ); | 1998 __ lwc1(f6, MemOperand(a0, offsetof(TestFloat, c)) ); |
1999 __ lw(t0, MemOperand(a0, offsetof(TestFloat, rt)) ); | 1999 __ lw(t0, MemOperand(a0, offsetof(TestFloat, rt)) ); |
2000 __ li(t1, 0x0); | 2000 __ Move(f12, 0.0); |
2001 __ mtc1(t1, f12); | 2001 __ Move(f10, 0.0); |
2002 __ mtc1(t1, f10); | 2002 __ Move(f16, 0.0); |
2003 __ mtc1(t1, f16); | 2003 __ Move(f14, 0.0); |
2004 __ mtc1(t1, f14); | |
2005 __ sdc1(f12, MemOperand(a0, offsetof(TestFloat, bold)) ); | 2004 __ sdc1(f12, MemOperand(a0, offsetof(TestFloat, bold)) ); |
2006 __ swc1(f10, MemOperand(a0, offsetof(TestFloat, dold)) ); | 2005 __ swc1(f10, MemOperand(a0, offsetof(TestFloat, dold)) ); |
2007 __ sdc1(f16, MemOperand(a0, offsetof(TestFloat, bold1)) ); | 2006 __ sdc1(f16, MemOperand(a0, offsetof(TestFloat, bold1)) ); |
2008 __ swc1(f14, MemOperand(a0, offsetof(TestFloat, dold1)) ); | 2007 __ swc1(f14, MemOperand(a0, offsetof(TestFloat, dold1)) ); |
2009 __ movz_s(f10, f6, t0); | 2008 __ movz_s(f10, f6, t0); |
2010 __ movz_d(f12, f2, t0); | 2009 __ movz_d(f12, f2, t0); |
2011 __ movn_s(f14, f6, t0); | 2010 __ movn_s(f14, f6, t0); |
2012 __ movn_d(f16, f2, t0); | 2011 __ movn_d(f16, f2, t0); |
2013 __ swc1(f10, MemOperand(a0, offsetof(TestFloat, d)) ); | 2012 __ swc1(f10, MemOperand(a0, offsetof(TestFloat, d)) ); |
2014 __ sdc1(f12, MemOperand(a0, offsetof(TestFloat, b)) ); | 2013 __ sdc1(f12, MemOperand(a0, offsetof(TestFloat, b)) ); |
(...skipping 3082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5097 }; | 5096 }; |
5098 | 5097 |
5099 size_t nr_test_cases = sizeof(tc) / sizeof(TestCaseBal); | 5098 size_t nr_test_cases = sizeof(tc) / sizeof(TestCaseBal); |
5100 for (size_t i = 0; i < nr_test_cases; ++i) { | 5099 for (size_t i = 0; i < nr_test_cases; ++i) { |
5101 CHECK_EQ(tc[i].expected_res, run_bal(tc[i].offset)); | 5100 CHECK_EQ(tc[i].expected_res, run_bal(tc[i].offset)); |
5102 } | 5101 } |
5103 } | 5102 } |
5104 | 5103 |
5105 | 5104 |
5106 #undef __ | 5105 #undef __ |
OLD | NEW |