Chromium Code Reviews| 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 9b6734ecfba0498f1cd1b6670cbbc889b6ce3629..b2479124f99bb762a0c3ac9f83df857c87716db3 100644 |
| --- a/test/cctest/compiler/test-run-machops.cc |
| +++ b/test/cctest/compiler/test-run-machops.cc |
| @@ -5144,6 +5144,16 @@ static double kValues[] = {0.1, |
| -two_52 + 1 - 0.7}; |
| +TEST(RunFloat32RoundDown) { |
| + BufferedRawMachineAssemblerTester<float> m(kMachFloat32); |
| + if (!m.machine()->Float32RoundDown().IsSupported()) return; |
| + |
| + m.Return(m.Float32RoundDown(m.Parameter(0))); |
| + |
| + FOR_FLOAT32_INPUTS(i) { CheckFloatEq(floorf(*i), m.Call(*i)); } |
|
jbramley
2015/11/25 10:46:16
Again, why not std::floor?
|
| +} |
| + |
| + |
| TEST(RunFloat64RoundDown1) { |
| BufferedRawMachineAssemblerTester<double> m(kMachFloat64); |
| if (!m.machine()->Float64RoundDown().IsSupported()) return; |