a8b8fbbd98
The name COMPILER_TEST is misleading here. R=jarin@chromium.org Review URL: https://codereview.chromium.org/465913002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23070 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
28 lines
847 B
C++
28 lines
847 B
C++
// 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 {};
|
|
|
|
|
|
TARGET_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
|