Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: test/compiler-unittests/arm/instruction-selector-arm-unittest.cc

Issue 448663002: Revert "Add initial support for compiler unit tests using GTest/GMock." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/compiler-unittests/DEPS ('k') | test/compiler-unittests/compiler-unittests.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "test/compiler-unittests/instruction-selector-unittest.h"
6
7 namespace v8 {
8 namespace internal {
9 namespace compiler {
10
11 class InstructionSelectorARMTest : public InstructionSelectorTest {};
12
13
14 COMPILER_TEST_F(InstructionSelectorARMTest, Int32AddP) {
15 StreamBuilder m(this, kMachineWord32, kMachineWord32, kMachineWord32);
16 m.Return(m.Int32Add(m.Parameter(0), m.Parameter(1)));
17 Stream s = m.Build();
18 ASSERT_EQ(1U, s.size());
19 EXPECT_EQ(kArmAdd, s[0]->arch_opcode());
20 EXPECT_EQ(kMode_Operand2_R, s[0]->addressing_mode());
21 EXPECT_EQ(2U, s[0]->InputCount());
22 EXPECT_EQ(1U, s[0]->OutputCount());
23 }
24
25 } // namespace compiler
26 } // namespace internal
27 } // namespace v8
OLDNEW
« no previous file with comments | « test/compiler-unittests/DEPS ('k') | test/compiler-unittests/compiler-unittests.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698