Do not rely on actual NaN value for testing extractps.
BUG=cctest/test-assembler-ia32/AssemblerIa32Extractps, cctest/test-assembler-x64/AssemblerX64Extractps R=bmeurer@chromium.org Review URL: https://codereview.chromium.org/26704004 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17218 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
258cee8f72
commit
3c9a322eaa
@ -591,7 +591,10 @@ TEST(AssemblerIa32Extractps) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
F4 f = FUNCTION_CAST<F4>(Code::cast(code)->entry());
|
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)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -516,7 +516,10 @@ TEST(AssemblerX64Extractps) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
F3 f = FUNCTION_CAST<F3>(Code::cast(code)->entry());
|
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)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user