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

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

Issue 2493173002: [turbofan] Fix more -Wsign-compare warnings. (Closed)
Patch Set: rebase Created 4 years, 1 month 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
« no previous file with comments | « test/cctest/test-assembler-arm.cc ('k') | test/unittests/eh-frame-iterator-unittest.cc » ('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 "test/unittests/compiler/instruction-selector-unittest.h" 5 #include "test/unittests/compiler/instruction-selector-unittest.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 namespace compiler { 9 namespace compiler {
10 10
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 325
326 TEST_P(InstructionSelectorCmpTest, Parameter) { 326 TEST_P(InstructionSelectorCmpTest, Parameter) {
327 const IntCmp cmp = GetParam(); 327 const IntCmp cmp = GetParam();
328 const MachineType type = cmp.mi.machine_type; 328 const MachineType type = cmp.mi.machine_type;
329 StreamBuilder m(this, type, type, type); 329 StreamBuilder m(this, type, type, type);
330 m.Return((m.*cmp.mi.constructor)(m.Parameter(0), m.Parameter(1))); 330 m.Return((m.*cmp.mi.constructor)(m.Parameter(0), m.Parameter(1)));
331 Stream s = m.Build(); 331 Stream s = m.Build();
332 332
333 if (FLAG_debug_code && 333 if (FLAG_debug_code &&
334 type.representation() == MachineRepresentation::kWord32) { 334 type.representation() == MachineRepresentation::kWord32) {
335 ASSERT_EQ(6, s.size()); 335 ASSERT_EQ(6U, s.size());
336 336
337 EXPECT_EQ(cmp.mi.arch_opcode, s[0]->arch_opcode()); 337 EXPECT_EQ(cmp.mi.arch_opcode, s[0]->arch_opcode());
338 EXPECT_EQ(2U, s[0]->InputCount()); 338 EXPECT_EQ(2U, s[0]->InputCount());
339 EXPECT_EQ(1U, s[0]->OutputCount()); 339 EXPECT_EQ(1U, s[0]->OutputCount());
340 340
341 EXPECT_EQ(kMips64Dshl, s[1]->arch_opcode()); 341 EXPECT_EQ(kMips64Dshl, s[1]->arch_opcode());
342 EXPECT_EQ(2U, s[1]->InputCount()); 342 EXPECT_EQ(2U, s[1]->InputCount());
343 EXPECT_EQ(1U, s[1]->OutputCount()); 343 EXPECT_EQ(1U, s[1]->OutputCount());
344 344
345 EXPECT_EQ(kMips64Dshl, s[2]->arch_opcode()); 345 EXPECT_EQ(kMips64Dshl, s[2]->arch_opcode());
(...skipping 1561 matching lines...) Expand 10 before | Expand all | Expand 10 after
1907 #endif 1907 #endif
1908 1908
1909 ASSERT_EQ(1U, s[0]->OutputCount()); 1909 ASSERT_EQ(1U, s[0]->OutputCount());
1910 } 1910 }
1911 } 1911 }
1912 } 1912 }
1913 1913
1914 } // namespace compiler 1914 } // namespace compiler
1915 } // namespace internal 1915 } // namespace internal
1916 } // namespace v8 1916 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/test-assembler-arm.cc ('k') | test/unittests/eh-frame-iterator-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698