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

Side by Side Diff: src/compiler/arm64/instruction-selector-arm64-unittest.cc

Issue 552653003: [turbofan] Fix the node matchers. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address nit. Created 6 years, 3 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 | « src/compiler/arm64/instruction-selector-arm64.cc ('k') | src/compiler/common-operator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <list> 5 #include <list>
6 6
7 #include "src/compiler/instruction-selector-unittest.h" 7 #include "src/compiler/instruction-selector-unittest.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 Stream s = m.Build(); 317 Stream s = m.Build();
318 318
319 ASSERT_EQ(1U, s.size()); 319 ASSERT_EQ(1U, s.size());
320 EXPECT_EQ(kArm64Neg32, s[0]->arch_opcode()); 320 EXPECT_EQ(kArm64Neg32, s[0]->arch_opcode());
321 EXPECT_EQ(1U, s[0]->InputCount()); 321 EXPECT_EQ(1U, s[0]->InputCount());
322 EXPECT_EQ(1U, s[0]->OutputCount()); 322 EXPECT_EQ(1U, s[0]->OutputCount());
323 } 323 }
324 { 324 {
325 // 64-bit subtract. 325 // 64-bit subtract.
326 StreamBuilder m(this, kMachInt64, kMachInt64, kMachInt64); 326 StreamBuilder m(this, kMachInt64, kMachInt64, kMachInt64);
327 m.Return(m.Int64Sub(m.Int32Constant(0), m.Parameter(0))); 327 m.Return(m.Int64Sub(m.Int64Constant(0), m.Parameter(0)));
328 Stream s = m.Build(); 328 Stream s = m.Build();
329 329
330 ASSERT_EQ(1U, s.size()); 330 ASSERT_EQ(1U, s.size());
331 EXPECT_EQ(kArm64Neg, s[0]->arch_opcode()); 331 EXPECT_EQ(kArm64Neg, s[0]->arch_opcode());
332 EXPECT_EQ(1U, s[0]->InputCount()); 332 EXPECT_EQ(1U, s[0]->InputCount());
333 EXPECT_EQ(1U, s[0]->OutputCount()); 333 EXPECT_EQ(1U, s[0]->OutputCount());
334 } 334 }
335 } 335 }
336 336
337 337
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 } 535 }
536 536
537 537
538 INSTANTIATE_TEST_CASE_P(InstructionSelectorTest, 538 INSTANTIATE_TEST_CASE_P(InstructionSelectorTest,
539 InstructionSelectorMemoryAccessTest, 539 InstructionSelectorMemoryAccessTest,
540 ::testing::ValuesIn(kMemoryAccesses)); 540 ::testing::ValuesIn(kMemoryAccesses));
541 541
542 } // namespace compiler 542 } // namespace compiler
543 } // namespace internal 543 } // namespace internal
544 } // namespace v8 544 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm64/instruction-selector-arm64.cc ('k') | src/compiler/common-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698