OLD | NEW |
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 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
831 | 831 |
832 TEST_F(Int64LoweringTest, I64PhiFloat64) { | 832 TEST_F(Int64LoweringTest, I64PhiFloat64) { |
833 TestPhi(this, MachineRepresentation::kFloat64, Float32Constant(1.5), | 833 TestPhi(this, MachineRepresentation::kFloat64, Float32Constant(1.5), |
834 Float32Constant(2.5)); | 834 Float32Constant(2.5)); |
835 } | 835 } |
836 | 836 |
837 TEST_F(Int64LoweringTest, I64PhiWord32) { | 837 TEST_F(Int64LoweringTest, I64PhiWord32) { |
838 TestPhi(this, MachineRepresentation::kWord32, Float32Constant(1), | 838 TestPhi(this, MachineRepresentation::kWord32, Float32Constant(1), |
839 Float32Constant(2)); | 839 Float32Constant(2)); |
840 } | 840 } |
| 841 |
| 842 TEST_F(Int64LoweringTest, I64ReverseBytes) { |
| 843 LowerGraph(graph()->NewNode(machine()->Word64ReverseBytes().placeholder(), |
| 844 Int64Constant(value(0))), |
| 845 MachineRepresentation::kWord64); |
| 846 EXPECT_THAT( |
| 847 graph()->end()->InputAt(1), |
| 848 IsReturn2(IsWord32ReverseBytes(IsInt32Constant(high_word_value(0))), |
| 849 IsWord32ReverseBytes(IsInt32Constant(low_word_value(0))), |
| 850 start(), start())); |
| 851 } |
841 } // namespace compiler | 852 } // namespace compiler |
842 } // namespace internal | 853 } // namespace internal |
843 } // namespace v8 | 854 } // namespace v8 |
OLD | NEW |