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

Side by Side Diff: test/unittests/compiler/int64-lowering-unittest.cc

Issue 1723613002: [wasm] Added I64Xor to the Int64Lowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int64-lowering-ior
Patch Set: removed merge marker Created 4 years, 10 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/cctest/wasm/test-run-wasm-64.cc ('k') | test/unittests/compiler/node-test-utils.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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/int64-lowering.h" 5 #include "src/compiler/int64-lowering.h"
6 #include "src/compiler/common-operator.h" 6 #include "src/compiler/common-operator.h"
7 #include "src/compiler/linkage.h" 7 #include "src/compiler/linkage.h"
8 #include "src/compiler/machine-operator.h" 8 #include "src/compiler/machine-operator.h"
9 #include "src/compiler/node.h" 9 #include "src/compiler/node.h"
10 10
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 MachineRepresentation::kWord64); 313 MachineRepresentation::kWord64);
314 EXPECT_THAT(graph()->end()->InputAt(1), 314 EXPECT_THAT(graph()->end()->InputAt(1),
315 IsReturn2(IsWord32Or(IsInt32Constant(low_word_value(0)), 315 IsReturn2(IsWord32Or(IsInt32Constant(low_word_value(0)),
316 IsInt32Constant(low_word_value(1))), 316 IsInt32Constant(low_word_value(1))),
317 IsWord32Or(IsInt32Constant(high_word_value(0)), 317 IsWord32Or(IsInt32Constant(high_word_value(0)),
318 IsInt32Constant(high_word_value(1))), 318 IsInt32Constant(high_word_value(1))),
319 start(), start())); 319 start(), start()));
320 } 320 }
321 321
322 // kExprI64Xor: 322 // kExprI64Xor:
323 TEST_F(Int64LoweringTest, Int64Xor) {
324 if (4 != kPointerSize) return;
325
326 LowerGraph(graph()->NewNode(machine()->Word64Xor(), Int64Constant(value(0)),
327 Int64Constant(value(1))),
328 MachineRepresentation::kWord64);
329 EXPECT_THAT(graph()->end()->InputAt(1),
330 IsReturn2(IsWord32Xor(IsInt32Constant(low_word_value(0)),
331 IsInt32Constant(low_word_value(1))),
332 IsWord32Xor(IsInt32Constant(high_word_value(0)),
333 IsInt32Constant(high_word_value(1))),
334 start(), start()));
335 }
323 // kExprI64Shl: 336 // kExprI64Shl:
324 // kExprI64ShrU: 337 // kExprI64ShrU:
325 // kExprI64ShrS: 338 // kExprI64ShrS:
326 // kExprI64Eq: 339 // kExprI64Eq:
327 // kExprI64Ne: 340 // kExprI64Ne:
328 // kExprI64LtS: 341 // kExprI64LtS:
329 // kExprI64LeS: 342 // kExprI64LeS:
330 // kExprI64LtU: 343 // kExprI64LtU:
331 // kExprI64LeU: 344 // kExprI64LeU:
332 // kExprI64GtS: 345 // kExprI64GtS:
(...skipping 17 matching lines...) Expand all
350 // kExprF64SConvertI64: 363 // kExprF64SConvertI64:
351 // kExprF64UConvertI64: 364 // kExprF64UConvertI64:
352 // kExprI64SConvertF32: 365 // kExprI64SConvertF32:
353 // kExprI64SConvertF64: 366 // kExprI64SConvertF64:
354 // kExprI64UConvertF32: 367 // kExprI64UConvertF32:
355 // kExprI64UConvertF64: 368 // kExprI64UConvertF64:
356 369
357 } // namespace compiler 370 } // namespace compiler
358 } // namespace internal 371 } // namespace internal
359 } // namespace v8 372 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/wasm/test-run-wasm-64.cc ('k') | test/unittests/compiler/node-test-utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698