| Index: test/compiler-unittests/arm/instruction-selector-arm-unittest.cc
|
| diff --git a/test/compiler-unittests/arm/instruction-selector-arm-unittest.cc b/test/compiler-unittests/arm/instruction-selector-arm-unittest.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3e51722ed36e6b2f22714cd3d8b4a83e3fb45a21
|
| --- /dev/null
|
| +++ b/test/compiler-unittests/arm/instruction-selector-arm-unittest.cc
|
| @@ -0,0 +1,27 @@
|
| +// Copyright 2014 the V8 project authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "test/compiler-unittests/instruction-selector-unittest.h"
|
| +
|
| +namespace v8 {
|
| +namespace internal {
|
| +namespace compiler {
|
| +
|
| +class InstructionSelectorARMTest : public InstructionSelectorTest {};
|
| +
|
| +
|
| +COMPILER_TEST_F(InstructionSelectorARMTest, Int32AddP) {
|
| + StreamBuilder m(this, kMachineWord32, kMachineWord32, kMachineWord32);
|
| + m.Return(m.Int32Add(m.Parameter(0), m.Parameter(1)));
|
| + Stream s = m.Build();
|
| + ASSERT_EQ(1U, s.size());
|
| + EXPECT_EQ(kArmAdd, s[0]->arch_opcode());
|
| + EXPECT_EQ(kMode_Operand2_R, s[0]->addressing_mode());
|
| + EXPECT_EQ(2U, s[0]->InputCount());
|
| + EXPECT_EQ(1U, s[0]->OutputCount());
|
| +}
|
| +
|
| +} // namespace compiler
|
| +} // namespace internal
|
| +} // namespace v8
|
|
|