| 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 2794aec51e505aeb02e376a290be3534766d1315..195f0a91dcb440c794bf8d7f2d96a3776d17f266 100644
|
| --- a/test/cctest/compiler/test-run-machops.cc
|
| +++ b/test/cctest/compiler/test-run-machops.cc
|
| @@ -3797,6 +3797,30 @@ TEST(RunFloat32Min) {
|
| }
|
| }
|
|
|
| +TEST(RunFloat64Max) {
|
| + RawMachineAssemblerTester<int32_t> m;
|
| + Float64BinopTester bt(&m);
|
| + bt.AddReturn(m.Float64Max(bt.param0, bt.param1));
|
| +
|
| + FOR_FLOAT64_INPUTS(pl) {
|
| + FOR_FLOAT64_INPUTS(pr) {
|
| + CHECK_DOUBLE_EQ(JSMax(*pl, *pr), bt.call(*pl, *pr));
|
| + }
|
| + }
|
| +}
|
| +
|
| +TEST(RunFloat64Min) {
|
| + RawMachineAssemblerTester<int32_t> m;
|
| + Float64BinopTester bt(&m);
|
| + bt.AddReturn(m.Float64Min(bt.param0, bt.param1));
|
| +
|
| + FOR_FLOAT64_INPUTS(pl) {
|
| + FOR_FLOAT64_INPUTS(pr) {
|
| + CHECK_DOUBLE_EQ(JSMin(*pl, *pr), bt.call(*pl, *pr));
|
| + }
|
| + }
|
| +}
|
| +
|
| TEST(RunFloat32SubP) {
|
| RawMachineAssemblerTester<int32_t> m;
|
| Float32BinopTester bt(&m);
|
|
|