| Index: test/cctest/compiler/test-run-machops.cc
|
| diff --git a/test/cctest/compiler/test-run-machops.cc b/test/cctest/compiler/test-run-machops.cc
|
| index 2e2587d40f4c05b3ac391ce55e2f782edba3f4ba..e66e40868389acf3a05ae9a6afd6a6b4219b20d7 100644
|
| --- a/test/cctest/compiler/test-run-machops.cc
|
| +++ b/test/cctest/compiler/test-run-machops.cc
|
| @@ -5526,7 +5526,7 @@ TEST(RunTryTruncateFloat64ToInt64WithCheck) {
|
| }
|
|
|
|
|
| -TEST(RunTruncateFloat32ToUint64) {
|
| +TEST(RunTryTruncateFloat32ToUint64WithoutCheck) {
|
| BufferedRawMachineAssemblerTester<uint64_t> m(MachineType::Float32());
|
| m.Return(m.TryTruncateFloat32ToUint64(m.Parameter(0)));
|
|
|
| @@ -5536,11 +5536,6 @@ TEST(RunTruncateFloat32ToUint64) {
|
| CHECK_EQ(static_cast<uint64_t>(input), m.Call(input));
|
| }
|
| }
|
| - FOR_FLOAT32_INPUTS(j) {
|
| - if (*j < 18446744073709551616.0 && *j >= 0) {
|
| - CHECK_EQ(static_cast<uint64_t>(*j), m.Call(*j));
|
| - }
|
| - }
|
| }
|
|
|
|
|
| @@ -5554,7 +5549,7 @@ TEST(RunTryTruncateFloat32ToUint64WithCheck) {
|
| m.Return(val);
|
|
|
| FOR_FLOAT32_INPUTS(i) {
|
| - if (*i < 18446744073709551616.0 && *i >= 0.0) {
|
| + if (*i < 18446744073709551616.0 && *i > -1.0) {
|
| // Conversions within this range should succeed.
|
| CHECK_EQ(static_cast<uint64_t>(*i), m.Call(*i));
|
| CHECK_NE(0, success);
|
| @@ -5590,7 +5585,7 @@ TEST(RunTryTruncateFloat64ToUint64WithCheck) {
|
| m.Return(val);
|
|
|
| FOR_FLOAT64_INPUTS(i) {
|
| - if (*i < 18446744073709551616.0 && *i >= 0) {
|
| + if (*i < 18446744073709551616.0 && *i > -1) {
|
| // Conversions within this range should succeed.
|
| CHECK_EQ(static_cast<uint64_t>(*i), m.Call(*i));
|
| CHECK_NE(0, success);
|
|
|