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

Side by Side Diff: test/unittests/compiler/machine-operator-unittest.cc

Issue 2082993002: [turbofan] Address the useless overflow bit materialization. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « test/unittests/compiler/machine-operator-reducer-unittest.cc ('k') | no next file » | 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 "src/compiler/machine-operator.h" 5 #include "src/compiler/machine-operator.h"
6 #include "src/compiler/opcodes.h" 6 #include "src/compiler/opcodes.h"
7 #include "src/compiler/operator.h" 7 #include "src/compiler/operator.h"
8 #include "src/compiler/operator-properties.h" 8 #include "src/compiler/operator-properties.h"
9 #include "test/unittests/test-utils.h" 9 #include "test/unittests/test-utils.h"
10 10
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 PURE(Word32Clz, 1, 0, 1), // -- 201 PURE(Word32Clz, 1, 0, 1), // --
202 PURE(Word64And, 2, 0, 1), // -- 202 PURE(Word64And, 2, 0, 1), // --
203 PURE(Word64Or, 2, 0, 1), // -- 203 PURE(Word64Or, 2, 0, 1), // --
204 PURE(Word64Xor, 2, 0, 1), // -- 204 PURE(Word64Xor, 2, 0, 1), // --
205 PURE(Word64Shl, 2, 0, 1), // -- 205 PURE(Word64Shl, 2, 0, 1), // --
206 PURE(Word64Shr, 2, 0, 1), // -- 206 PURE(Word64Shr, 2, 0, 1), // --
207 PURE(Word64Sar, 2, 0, 1), // -- 207 PURE(Word64Sar, 2, 0, 1), // --
208 PURE(Word64Ror, 2, 0, 1), // -- 208 PURE(Word64Ror, 2, 0, 1), // --
209 PURE(Word64Equal, 2, 0, 1), // -- 209 PURE(Word64Equal, 2, 0, 1), // --
210 PURE(Int32Add, 2, 0, 1), // -- 210 PURE(Int32Add, 2, 0, 1), // --
211 PURE(Int32AddWithOverflow, 2, 0, 2), // --
212 PURE(Int32Sub, 2, 0, 1), // -- 211 PURE(Int32Sub, 2, 0, 1), // --
213 PURE(Int32SubWithOverflow, 2, 0, 2), // --
214 PURE(Int32Mul, 2, 0, 1), // -- 212 PURE(Int32Mul, 2, 0, 1), // --
215 PURE(Int32MulHigh, 2, 0, 1), // -- 213 PURE(Int32MulHigh, 2, 0, 1), // --
216 PURE(Int32Div, 2, 1, 1), // -- 214 PURE(Int32Div, 2, 1, 1), // --
217 PURE(Uint32Div, 2, 1, 1), // -- 215 PURE(Uint32Div, 2, 1, 1), // --
218 PURE(Int32Mod, 2, 1, 1), // -- 216 PURE(Int32Mod, 2, 1, 1), // --
219 PURE(Uint32Mod, 2, 1, 1), // -- 217 PURE(Uint32Mod, 2, 1, 1), // --
220 PURE(Int32LessThan, 2, 0, 1), // -- 218 PURE(Int32LessThan, 2, 0, 1), // --
221 PURE(Int32LessThanOrEqual, 2, 0, 1), // -- 219 PURE(Int32LessThanOrEqual, 2, 0, 1), // --
222 PURE(Uint32LessThan, 2, 0, 1), // -- 220 PURE(Uint32LessThan, 2, 0, 1), // --
223 PURE(Uint32LessThanOrEqual, 2, 0, 1), // -- 221 PURE(Uint32LessThanOrEqual, 2, 0, 1), // --
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 EXPECT_EQ(machine.Uint64Div(), machine.UintDiv()); 413 EXPECT_EQ(machine.Uint64Div(), machine.UintDiv());
416 EXPECT_EQ(machine.Int64Mod(), machine.IntMod()); 414 EXPECT_EQ(machine.Int64Mod(), machine.IntMod());
417 EXPECT_EQ(machine.Uint64Mod(), machine.UintMod()); 415 EXPECT_EQ(machine.Uint64Mod(), machine.UintMod());
418 EXPECT_EQ(machine.Int64LessThan(), machine.IntLessThan()); 416 EXPECT_EQ(machine.Int64LessThan(), machine.IntLessThan());
419 EXPECT_EQ(machine.Int64LessThanOrEqual(), machine.IntLessThanOrEqual()); 417 EXPECT_EQ(machine.Int64LessThanOrEqual(), machine.IntLessThanOrEqual());
420 } 418 }
421 419
422 } // namespace compiler 420 } // namespace compiler
423 } // namespace internal 421 } // namespace internal
424 } // namespace v8 422 } // namespace v8
OLDNEW
« no previous file with comments | « test/unittests/compiler/machine-operator-reducer-unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698