OLD | NEW |
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 "test/unittests/compiler/instruction-selector-unittest.h" | 5 #include "test/unittests/compiler/instruction-selector-unittest.h" |
6 | 6 |
7 namespace v8 { | 7 namespace v8 { |
8 namespace internal { | 8 namespace internal { |
9 namespace compiler { | 9 namespace compiler { |
10 | 10 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 {&RawMachineAssembler::Word32Ror, "Word32Ror", kArm64Ror32, kMachInt32}, | 134 {&RawMachineAssembler::Word32Ror, "Word32Ror", kArm64Ror32, kMachInt32}, |
135 {&RawMachineAssembler::Word64Ror, "Word64Ror", kArm64Ror, kMachInt64}}; | 135 {&RawMachineAssembler::Word64Ror, "Word64Ror", kArm64Ror, kMachInt64}}; |
136 | 136 |
137 | 137 |
138 // ARM64 Mul/Div instructions. | 138 // ARM64 Mul/Div instructions. |
139 static const MachInst2 kMulDivInstructions[] = { | 139 static const MachInst2 kMulDivInstructions[] = { |
140 {&RawMachineAssembler::Int32Mul, "Int32Mul", kArm64Mul32, kMachInt32}, | 140 {&RawMachineAssembler::Int32Mul, "Int32Mul", kArm64Mul32, kMachInt32}, |
141 {&RawMachineAssembler::Int64Mul, "Int64Mul", kArm64Mul, kMachInt64}, | 141 {&RawMachineAssembler::Int64Mul, "Int64Mul", kArm64Mul, kMachInt64}, |
142 {&RawMachineAssembler::Int32Div, "Int32Div", kArm64Idiv32, kMachInt32}, | 142 {&RawMachineAssembler::Int32Div, "Int32Div", kArm64Idiv32, kMachInt32}, |
143 {&RawMachineAssembler::Int64Div, "Int64Div", kArm64Idiv, kMachInt64}, | 143 {&RawMachineAssembler::Int64Div, "Int64Div", kArm64Idiv, kMachInt64}, |
144 {&RawMachineAssembler::Int32UDiv, "Int32UDiv", kArm64Udiv32, kMachInt32}, | 144 {&RawMachineAssembler::Uint32Div, "Uint32Div", kArm64Udiv32, kMachInt32}, |
145 {&RawMachineAssembler::Int64UDiv, "Int64UDiv", kArm64Udiv, kMachInt64}}; | 145 {&RawMachineAssembler::Uint64Div, "Uint64Div", kArm64Udiv, kMachInt64}}; |
146 | 146 |
147 | 147 |
148 // ARM64 FP arithmetic instructions. | 148 // ARM64 FP arithmetic instructions. |
149 static const MachInst2 kFPArithInstructions[] = { | 149 static const MachInst2 kFPArithInstructions[] = { |
150 {&RawMachineAssembler::Float64Add, "Float64Add", kArm64Float64Add, | 150 {&RawMachineAssembler::Float64Add, "Float64Add", kArm64Float64Add, |
151 kMachFloat64}, | 151 kMachFloat64}, |
152 {&RawMachineAssembler::Float64Sub, "Float64Sub", kArm64Float64Sub, | 152 {&RawMachineAssembler::Float64Sub, "Float64Sub", kArm64Float64Sub, |
153 kMachFloat64}, | 153 kMachFloat64}, |
154 {&RawMachineAssembler::Float64Mul, "Float64Mul", kArm64Float64Mul, | 154 {&RawMachineAssembler::Float64Mul, "Float64Mul", kArm64Float64Mul, |
155 kMachFloat64}, | 155 kMachFloat64}, |
(...skipping 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1404 ASSERT_EQ(1U, s.size()); | 1404 ASSERT_EQ(1U, s.size()); |
1405 EXPECT_EQ(kArm64Not, s[0]->arch_opcode()); | 1405 EXPECT_EQ(kArm64Not, s[0]->arch_opcode()); |
1406 EXPECT_EQ(1U, s[0]->InputCount()); | 1406 EXPECT_EQ(1U, s[0]->InputCount()); |
1407 EXPECT_EQ(1U, s[0]->OutputCount()); | 1407 EXPECT_EQ(1U, s[0]->OutputCount()); |
1408 } | 1408 } |
1409 } | 1409 } |
1410 | 1410 |
1411 } // namespace compiler | 1411 } // namespace compiler |
1412 } // namespace internal | 1412 } // namespace internal |
1413 } // namespace v8 | 1413 } // namespace v8 |
OLD | NEW |