Revision: 17218
Author:   [email protected]
Date:     Tue Oct 15 14:04:49 2013 UTC
Log:      Do not rely on actual NaN value for testing extractps.

BUG=cctest/test-assembler-ia32/AssemblerIa32Extractps, cctest/test-assembler-x64/AssemblerX64Extractps
[email protected]

Review URL: https://codereview.chromium.org/26704004
http://code.google.com/p/v8/source/detail?r=17218

Modified:
 /branches/bleeding_edge/test/cctest/test-assembler-ia32.cc
 /branches/bleeding_edge/test/cctest/test-assembler-x64.cc

=======================================
--- /branches/bleeding_edge/test/cctest/test-assembler-ia32.cc Tue Oct 15 12:51:58 2013 UTC +++ /branches/bleeding_edge/test/cctest/test-assembler-ia32.cc Tue Oct 15 14:04:49 2013 UTC
@@ -591,7 +591,10 @@
 #endif

   F4 f = FUNCTION_CAST<F4>(Code::cast(code)->entry());
-  CHECK_EQ(0x7FF80000, f(OS::nan_value()));
+  uint64_t value1 = V8_2PART_UINT64_C(0x12345678, 87654321);
+  CHECK_EQ(0x12345678, f(uint64_to_double(value1)));
+  uint64_t value2 = V8_2PART_UINT64_C(0x87654321, 12345678);
+  CHECK_EQ(0x87654321, f(uint64_to_double(value2)));
 }


=======================================
--- /branches/bleeding_edge/test/cctest/test-assembler-x64.cc Tue Oct 15 12:51:58 2013 UTC +++ /branches/bleeding_edge/test/cctest/test-assembler-x64.cc Tue Oct 15 14:04:49 2013 UTC
@@ -516,7 +516,10 @@
 #endif

   F3 f = FUNCTION_CAST<F3>(Code::cast(code)->entry());
-  CHECK_EQ(0x7FF80000, f(OS::nan_value()));
+  uint64_t value1 = V8_2PART_UINT64_C(0x12345678, 87654321);
+  CHECK_EQ(0x12345678, f(uint64_to_double(value1)));
+  uint64_t value2 = V8_2PART_UINT64_C(0x87654321, 12345678);
+  CHECK_EQ(0x87654321, f(uint64_to_double(value2)));
 }


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to