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

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

Issue 2045943002: [compiler] [wasm] Introduce Word32/64ReverseBytes as TF Optional Opcode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix according to ahaas Created 4 years, 4 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 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 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 812
813 TEST_F(Int64LoweringTest, I64PhiFloat64) { 813 TEST_F(Int64LoweringTest, I64PhiFloat64) {
814 TestPhi(this, MachineRepresentation::kFloat64, Float32Constant(1.5), 814 TestPhi(this, MachineRepresentation::kFloat64, Float32Constant(1.5),
815 Float32Constant(2.5)); 815 Float32Constant(2.5));
816 } 816 }
817 817
818 TEST_F(Int64LoweringTest, I64PhiWord32) { 818 TEST_F(Int64LoweringTest, I64PhiWord32) {
819 TestPhi(this, MachineRepresentation::kWord32, Float32Constant(1), 819 TestPhi(this, MachineRepresentation::kWord32, Float32Constant(1),
820 Float32Constant(2)); 820 Float32Constant(2));
821 } 821 }
822
823 TEST_F(Int64LoweringTest, I64ReverseBytes) {
824 LowerGraph(graph()->NewNode(machine()->Word64ReverseBytes().placeholder(),
825 Int64Constant(value(0))),
826 MachineRepresentation::kWord64);
827 EXPECT_THAT(
828 graph()->end()->InputAt(1),
829 IsReturn2(IsWord32ReverseBytes(IsInt32Constant(high_word_value(0))),
830 IsWord32ReverseBytes(IsInt32Constant(low_word_value(0))),
831 start(), start()));
832 }
822 } // namespace compiler 833 } // namespace compiler
823 } // namespace internal 834 } // namespace internal
824 } // namespace v8 835 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698