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

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

Issue 974313002: [turbofan] Support for %_DoubleHi, %_DoubleLo and %_ConstructDouble. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed Svens comment. Created 5 years, 9 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
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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 PURE(ChangeInt32ToInt64, 1, 0, 1), PURE(ChangeUint32ToFloat64, 1, 0, 1), 199 PURE(ChangeInt32ToInt64, 1, 0, 1), PURE(ChangeUint32ToFloat64, 1, 0, 1),
200 PURE(ChangeUint32ToUint64, 1, 0, 1), 200 PURE(ChangeUint32ToUint64, 1, 0, 1),
201 PURE(TruncateFloat64ToFloat32, 1, 0, 1), 201 PURE(TruncateFloat64ToFloat32, 1, 0, 1),
202 PURE(TruncateFloat64ToInt32, 1, 0, 1), PURE(TruncateInt64ToInt32, 1, 0, 1), 202 PURE(TruncateFloat64ToInt32, 1, 0, 1), PURE(TruncateInt64ToInt32, 1, 0, 1),
203 PURE(Float64Add, 2, 0, 1), PURE(Float64Sub, 2, 0, 1), 203 PURE(Float64Add, 2, 0, 1), PURE(Float64Sub, 2, 0, 1),
204 PURE(Float64Mul, 2, 0, 1), PURE(Float64Div, 2, 0, 1), 204 PURE(Float64Mul, 2, 0, 1), PURE(Float64Div, 2, 0, 1),
205 PURE(Float64Mod, 2, 0, 1), PURE(Float64Sqrt, 1, 0, 1), 205 PURE(Float64Mod, 2, 0, 1), PURE(Float64Sqrt, 1, 0, 1),
206 PURE(Float64Equal, 2, 0, 1), PURE(Float64LessThan, 2, 0, 1), 206 PURE(Float64Equal, 2, 0, 1), PURE(Float64LessThan, 2, 0, 1),
207 PURE(Float64LessThanOrEqual, 2, 0, 1), PURE(LoadStackPointer, 0, 0, 1), 207 PURE(Float64LessThanOrEqual, 2, 0, 1), PURE(LoadStackPointer, 0, 0, 1),
208 PURE(Float64Floor, 1, 0, 1), PURE(Float64Ceil, 1, 0, 1), 208 PURE(Float64Floor, 1, 0, 1), PURE(Float64Ceil, 1, 0, 1),
209 PURE(Float64RoundTruncate, 1, 0, 1), PURE(Float64RoundTiesAway, 1, 0, 1) 209 PURE(Float64RoundTruncate, 1, 0, 1), PURE(Float64RoundTiesAway, 1, 0, 1),
210 PURE(Float64ExtractLowWord32, 1, 0, 1),
211 PURE(Float64ExtractHighWord32, 1, 0, 1),
212 PURE(Float64InsertLowWord32, 2, 0, 1),
213 PURE(Float64InsertHighWord32, 2, 0, 1)
210 #undef PURE 214 #undef PURE
211 }; 215 };
212 216
213 217
214 typedef MachineOperatorTestWithParam<PureOperator> MachinePureOperatorTest; 218 typedef MachineOperatorTestWithParam<PureOperator> MachinePureOperatorTest;
215 219
216 } // namespace 220 } // namespace
217 221
218 222
219 TEST_P(MachinePureOperatorTest, InstancesAreGloballyShared) { 223 TEST_P(MachinePureOperatorTest, InstancesAreGloballyShared) {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 EXPECT_EQ(machine.Uint64Div(), machine.UintDiv()); 319 EXPECT_EQ(machine.Uint64Div(), machine.UintDiv());
316 EXPECT_EQ(machine.Int64Mod(), machine.IntMod()); 320 EXPECT_EQ(machine.Int64Mod(), machine.IntMod());
317 EXPECT_EQ(machine.Uint64Mod(), machine.UintMod()); 321 EXPECT_EQ(machine.Uint64Mod(), machine.UintMod());
318 EXPECT_EQ(machine.Int64LessThan(), machine.IntLessThan()); 322 EXPECT_EQ(machine.Int64LessThan(), machine.IntLessThan());
319 EXPECT_EQ(machine.Int64LessThanOrEqual(), machine.IntLessThanOrEqual()); 323 EXPECT_EQ(machine.Int64LessThanOrEqual(), machine.IntLessThanOrEqual());
320 } 324 }
321 325
322 } // namespace compiler 326 } // namespace compiler
323 } // namespace internal 327 } // namespace internal
324 } // namespace v8 328 } // namespace v8
OLDNEW
« no previous file with comments | « test/unittests/compiler/machine-operator-reducer-unittest.cc ('k') | test/unittests/compiler/node-test-utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698