| Index: test/unittests/compiler/arm/instruction-selector-arm-unittest.cc
|
| diff --git a/test/unittests/compiler/arm/instruction-selector-arm-unittest.cc b/test/unittests/compiler/arm/instruction-selector-arm-unittest.cc
|
| index 08a23e9f75a058fd86665704d2de7b6a729f5296..6e4306de05d0d08e3d0bc1920500cfe45a494aae 100644
|
| --- a/test/unittests/compiler/arm/instruction-selector-arm-unittest.cc
|
| +++ b/test/unittests/compiler/arm/instruction-selector-arm-unittest.cc
|
| @@ -1765,6 +1765,23 @@ TEST_F(InstructionSelectorTest, Int32MulHighWithParameters) {
|
| }
|
|
|
|
|
| +TEST_F(InstructionSelectorTest, Uint32MulHighWithParameters) {
|
| + StreamBuilder m(this, kMachUint32, kMachUint32, kMachUint32);
|
| + Node* const p0 = m.Parameter(0);
|
| + Node* const p1 = m.Parameter(1);
|
| + Node* const n = m.Uint32MulHigh(p0, p1);
|
| + m.Return(n);
|
| + Stream s = m.Build();
|
| + ASSERT_EQ(1U, s.size());
|
| + EXPECT_EQ(kArmUmull, s[0]->arch_opcode());
|
| + ASSERT_EQ(2U, s[0]->InputCount());
|
| + EXPECT_EQ(s.ToVreg(p0), s.ToVreg(s[0]->InputAt(0)));
|
| + EXPECT_EQ(s.ToVreg(p1), s.ToVreg(s[0]->InputAt(1)));
|
| + ASSERT_EQ(2U, s[0]->OutputCount());
|
| + EXPECT_EQ(s.ToVreg(n), s.ToVreg(s[0]->OutputAt(1)));
|
| +}
|
| +
|
| +
|
| TEST_F(InstructionSelectorTest, Uint32DivWithParameters) {
|
| StreamBuilder m(this, kMachInt32, kMachInt32, kMachInt32);
|
| m.Return(m.Uint32Div(m.Parameter(0), m.Parameter(1)));
|
|
|