Index: test/cctest/compiler/test-js-constant-cache.cc |
diff --git a/test/cctest/compiler/test-js-constant-cache.cc b/test/cctest/compiler/test-js-constant-cache.cc |
index 60cbb8d9dbc47536edc86bf6e12b42fa931c92da..630f911c5e0132f49b073bbf5135f168c785b1d8 100644 |
--- a/test/cctest/compiler/test-js-constant-cache.cc |
+++ b/test/cctest/compiler/test-js-constant-cache.cc |
@@ -103,10 +103,10 @@ TEST(MinusZeroConstant) { |
double zero_value = OpParameter<double>(zero); |
double minus_zero_value = OpParameter<double>(minus_zero); |
- CHECK_EQ(0.0, zero_value); |
- CHECK_NE(-0.0, zero_value); |
- CHECK_EQ(-0.0, minus_zero_value); |
- CHECK_NE(0.0, minus_zero_value); |
+ CHECK(bit_cast<uint64_t>(0.0) == bit_cast<uint64_t>(zero_value)); |
+ CHECK(bit_cast<uint64_t>(-0.0) != bit_cast<uint64_t>(zero_value)); |
+ CHECK(bit_cast<uint64_t>(0.0) != bit_cast<uint64_t>(minus_zero_value)); |
+ CHECK(bit_cast<uint64_t>(-0.0) == bit_cast<uint64_t>(minus_zero_value)); |
} |