| 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 d925448b3efb125a9634b9d862061bbccf7ff9f9..55a8ae7d4ac053f36ca4471529abe365fb6895ad 100644
|
| --- a/test/cctest/compiler/test-run-machops.cc
|
| +++ b/test/cctest/compiler/test-run-machops.cc
|
| @@ -1259,6 +1259,22 @@ TEST(RunInt32MulImm) {
|
|
|
| TEST(RunInt32MulAndInt32AddP) {
|
| {
|
| + FOR_INT32_INPUTS(i) {
|
| + FOR_INT32_INPUTS(j) {
|
| + RawMachineAssemblerTester<int32_t> m(kMachInt32);
|
| + int32_t p0 = *i;
|
| + int32_t p1 = *j;
|
| + m.Return(m.Int32Add(m.Int32Constant(p0),
|
| + m.Int32Mul(m.Parameter(0), m.Int32Constant(p1))));
|
| + FOR_INT32_INPUTS(k) {
|
| + int32_t p2 = *k;
|
| + int expected = p0 + static_cast<int32_t>(p1 * p2);
|
| + CHECK_EQ(expected, m.Call(p2));
|
| + }
|
| + }
|
| + }
|
| + }
|
| + {
|
| RawMachineAssemblerTester<int32_t> m(kMachInt32, kMachInt32, kMachInt32);
|
| m.Return(
|
| m.Int32Add(m.Parameter(0), m.Int32Mul(m.Parameter(1), m.Parameter(2))));
|
|
|