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 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1006 CHECK_EQ(static_cast<int32_t>(0x112233aa), t.swl_0); | 1006 CHECK_EQ(static_cast<int32_t>(0x112233aa), t.swl_0); |
1007 CHECK_EQ(static_cast<int32_t>(0x1122aabb), t.swl_1); | 1007 CHECK_EQ(static_cast<int32_t>(0x1122aabb), t.swl_1); |
1008 CHECK_EQ(static_cast<int32_t>(0x11aabbcc), t.swl_2); | 1008 CHECK_EQ(static_cast<int32_t>(0x11aabbcc), t.swl_2); |
1009 CHECK_EQ(static_cast<int32_t>(0xaabbccdd), t.swl_3); | 1009 CHECK_EQ(static_cast<int32_t>(0xaabbccdd), t.swl_3); |
1010 | 1010 |
1011 CHECK_EQ(static_cast<int32_t>(0xaabbccdd), t.swr_0); | 1011 CHECK_EQ(static_cast<int32_t>(0xaabbccdd), t.swr_0); |
1012 CHECK_EQ(static_cast<int32_t>(0xbbccdd44), t.swr_1); | 1012 CHECK_EQ(static_cast<int32_t>(0xbbccdd44), t.swr_1); |
1013 CHECK_EQ(static_cast<int32_t>(0xccdd3344), t.swr_2); | 1013 CHECK_EQ(static_cast<int32_t>(0xccdd3344), t.swr_2); |
1014 CHECK_EQ(static_cast<int32_t>(0xdd223344), t.swr_3); | 1014 CHECK_EQ(static_cast<int32_t>(0xdd223344), t.swr_3); |
1015 #elif __BYTE_ORDER == __BIG_ENDIAN | 1015 #elif __BYTE_ORDER == __BIG_ENDIAN |
1016 11223344, t.lwl_0); | 1016 CHECK_EQ(static_cast<int32_t>(0x11223344), t.lwl_0); |
1017 CHECK_EQ(static_cast<int32_t>(0x223344dd), t.lwl_1); | 1017 CHECK_EQ(static_cast<int32_t>(0x223344dd), t.lwl_1); |
1018 CHECK_EQ(static_cast<int32_t>(0x3344ccdd), t.lwl_2); | 1018 CHECK_EQ(static_cast<int32_t>(0x3344ccdd), t.lwl_2); |
1019 CHECK_EQ(static_cast<int32_t>(0x44bbccdd), t.lwl_3); | 1019 CHECK_EQ(static_cast<int32_t>(0x44bbccdd), t.lwl_3); |
1020 | 1020 |
1021 CHECK_EQ(static_cast<int32_t>(0xaabbcc11), t.lwr_0); | 1021 CHECK_EQ(static_cast<int32_t>(0xaabbcc11), t.lwr_0); |
1022 CHECK_EQ(static_cast<int32_t>(0xaabb1122), t.lwr_1); | 1022 CHECK_EQ(static_cast<int32_t>(0xaabb1122), t.lwr_1); |
1023 CHECK_EQ(static_cast<int32_t>(0xaa112233), t.lwr_2); | 1023 CHECK_EQ(static_cast<int32_t>(0xaa112233), t.lwr_2); |
1024 CHECK_EQ(static_cast<int32_t>(0x11223344), t.lwr_3); | 1024 CHECK_EQ(static_cast<int32_t>(0x11223344), t.lwr_3); |
1025 | 1025 |
1026 CHECK_EQ(static_cast<int32_t>(0xaabbccdd), t.swl_0); | 1026 CHECK_EQ(static_cast<int32_t>(0xaabbccdd), t.swl_0); |
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1860 ::printf("f(%d) = ", i); | 1860 ::printf("f(%d) = ", i); |
1861 result->Print(std::cout); | 1861 result->Print(std::cout); |
1862 ::printf("\n"); | 1862 ::printf("\n"); |
1863 #endif | 1863 #endif |
1864 CHECK(values[i].is_identical_to(result)); | 1864 CHECK(values[i].is_identical_to(result)); |
1865 } | 1865 } |
1866 } | 1866 } |
1867 | 1867 |
1868 | 1868 |
1869 #undef __ | 1869 #undef __ |
OLD | NEW |