| 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..fdb07a4f213dd44386b588a4e4a6cd6995d67b9b 100644
|
| --- a/test/cctest/compiler/test-run-machops.cc
|
| +++ b/test/cctest/compiler/test-run-machops.cc
|
| @@ -5144,6 +5144,19 @@ static double kValues[] = {0.1,
|
| -two_52 + 1 - 0.7};
|
|
|
|
|
| +TEST(RunFloat32RoundDown) {
|
| + BufferedRawMachineAssemblerTester<float> m(kMachFloat32);
|
| + if (!m.machine()->Float32RoundDown().IsSupported()) {
|
| + printf("not supported\n");
|
| + return;
|
| + }
|
| +
|
| + m.Return(m.Float32RoundDown(m.Parameter(0)));
|
| +
|
| + FOR_FLOAT32_INPUTS(i) { CheckFloatEq(floorf(*i), m.Call(*i)); }
|
| +}
|
| +
|
| +
|
| TEST(RunFloat64RoundDown1) {
|
| BufferedRawMachineAssemblerTester<double> m(kMachFloat64);
|
| if (!m.machine()->Float64RoundDown().IsSupported()) return;
|
|
|