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

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

Issue 1225993002: [turbofan] Add TruncationMode for TruncateFloat64ToInt32. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 PURE(Int64LessThanOrEqual, 2, 0, 1), // -- 217 PURE(Int64LessThanOrEqual, 2, 0, 1), // --
218 PURE(Uint64LessThan, 2, 0, 1), // -- 218 PURE(Uint64LessThan, 2, 0, 1), // --
219 PURE(Uint64LessThanOrEqual, 2, 0, 1), // -- 219 PURE(Uint64LessThanOrEqual, 2, 0, 1), // --
220 PURE(ChangeFloat32ToFloat64, 1, 0, 1), // -- 220 PURE(ChangeFloat32ToFloat64, 1, 0, 1), // --
221 PURE(ChangeFloat64ToInt32, 1, 0, 1), // -- 221 PURE(ChangeFloat64ToInt32, 1, 0, 1), // --
222 PURE(ChangeFloat64ToUint32, 1, 0, 1), // -- 222 PURE(ChangeFloat64ToUint32, 1, 0, 1), // --
223 PURE(ChangeInt32ToInt64, 1, 0, 1), // -- 223 PURE(ChangeInt32ToInt64, 1, 0, 1), // --
224 PURE(ChangeUint32ToFloat64, 1, 0, 1), // -- 224 PURE(ChangeUint32ToFloat64, 1, 0, 1), // --
225 PURE(ChangeUint32ToUint64, 1, 0, 1), // -- 225 PURE(ChangeUint32ToUint64, 1, 0, 1), // --
226 PURE(TruncateFloat64ToFloat32, 1, 0, 1), // -- 226 PURE(TruncateFloat64ToFloat32, 1, 0, 1), // --
227 PURE(TruncateFloat64ToInt32, 1, 0, 1), // --
228 PURE(TruncateInt64ToInt32, 1, 0, 1), // -- 227 PURE(TruncateInt64ToInt32, 1, 0, 1), // --
229 PURE(Float32Abs, 1, 0, 1), // -- 228 PURE(Float32Abs, 1, 0, 1), // --
230 PURE(Float32Add, 2, 0, 1), // -- 229 PURE(Float32Add, 2, 0, 1), // --
231 PURE(Float32Sub, 2, 0, 1), // -- 230 PURE(Float32Sub, 2, 0, 1), // --
232 PURE(Float32Mul, 2, 0, 1), // -- 231 PURE(Float32Mul, 2, 0, 1), // --
233 PURE(Float32Div, 2, 0, 1), // -- 232 PURE(Float32Div, 2, 0, 1), // --
234 PURE(Float32Sqrt, 1, 0, 1), // -- 233 PURE(Float32Sqrt, 1, 0, 1), // --
235 PURE(Float32Equal, 2, 0, 1), // -- 234 PURE(Float32Equal, 2, 0, 1), // --
236 PURE(Float32LessThan, 2, 0, 1), // -- 235 PURE(Float32LessThan, 2, 0, 1), // --
237 PURE(Float32LessThanOrEqual, 2, 0, 1), // -- 236 PURE(Float32LessThanOrEqual, 2, 0, 1), // --
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 EXPECT_EQ(machine.Uint64Div(), machine.UintDiv()); 394 EXPECT_EQ(machine.Uint64Div(), machine.UintDiv());
396 EXPECT_EQ(machine.Int64Mod(), machine.IntMod()); 395 EXPECT_EQ(machine.Int64Mod(), machine.IntMod());
397 EXPECT_EQ(machine.Uint64Mod(), machine.UintMod()); 396 EXPECT_EQ(machine.Uint64Mod(), machine.UintMod());
398 EXPECT_EQ(machine.Int64LessThan(), machine.IntLessThan()); 397 EXPECT_EQ(machine.Int64LessThan(), machine.IntLessThan());
399 EXPECT_EQ(machine.Int64LessThanOrEqual(), machine.IntLessThanOrEqual()); 398 EXPECT_EQ(machine.Int64LessThanOrEqual(), machine.IntLessThanOrEqual());
400 } 399 }
401 400
402 } // namespace compiler 401 } // namespace compiler
403 } // namespace internal 402 } // namespace internal
404 } // namespace v8 403 } // 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