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 <list> | 5 #include <list> |
6 | 6 |
7 #include "src/compiler/instruction-selector-unittest.h" | 7 #include "src/compiler/instruction-selector-unittest.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 }; | 190 }; |
191 | 191 |
192 | 192 |
193 std::ostream& operator<<(std::ostream& os, const Conversion& conv) { | 193 std::ostream& operator<<(std::ostream& os, const Conversion& conv) { |
194 return os << conv.mi; | 194 return os << conv.mi; |
195 } | 195 } |
196 | 196 |
197 | 197 |
198 // ARM64 type conversion instructions. | 198 // ARM64 type conversion instructions. |
199 static const Conversion kConversionInstructions[] = { | 199 static const Conversion kConversionInstructions[] = { |
| 200 {{&RawMachineAssembler::ChangeFloat32ToFloat64, "ChangeFloat32ToFloat64", |
| 201 kArm64Float32ToFloat64, kMachFloat64}, |
| 202 kMachFloat32}, |
| 203 {{&RawMachineAssembler::TruncateFloat64ToFloat32, |
| 204 "TruncateFloat64ToFloat32", kArm64Float64ToFloat32, kMachFloat32}, |
| 205 kMachFloat64}, |
200 {{&RawMachineAssembler::ChangeInt32ToInt64, "ChangeInt32ToInt64", | 206 {{&RawMachineAssembler::ChangeInt32ToInt64, "ChangeInt32ToInt64", |
201 kArm64Sxtw, kMachInt64}, | 207 kArm64Sxtw, kMachInt64}, |
202 kMachInt32}, | 208 kMachInt32}, |
203 {{&RawMachineAssembler::ChangeUint32ToUint64, "ChangeUint32ToUint64", | 209 {{&RawMachineAssembler::ChangeUint32ToUint64, "ChangeUint32ToUint64", |
204 kArm64Mov32, kMachUint64}, | 210 kArm64Mov32, kMachUint64}, |
205 kMachUint32}, | 211 kMachUint32}, |
206 {{&RawMachineAssembler::TruncateInt64ToInt32, "TruncateInt64ToInt32", | 212 {{&RawMachineAssembler::TruncateInt64ToInt32, "TruncateInt64ToInt32", |
207 kArm64Mov32, kMachInt32}, | 213 kArm64Mov32, kMachInt32}, |
208 kMachInt64}, | 214 kMachInt64}, |
209 {{&RawMachineAssembler::ChangeInt32ToFloat64, "ChangeInt32ToFloat64", | 215 {{&RawMachineAssembler::ChangeInt32ToFloat64, "ChangeInt32ToFloat64", |
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1112 EXPECT_EQ(s.ToVreg(s[0]->InputAt(0)), s.ToVreg(s[0]->InputAt(1))); | 1118 EXPECT_EQ(s.ToVreg(s[0]->InputAt(0)), s.ToVreg(s[0]->InputAt(1))); |
1113 EXPECT_EQ(1U, s[0]->OutputCount()); | 1119 EXPECT_EQ(1U, s[0]->OutputCount()); |
1114 EXPECT_EQ(kFlags_set, s[0]->flags_mode()); | 1120 EXPECT_EQ(kFlags_set, s[0]->flags_mode()); |
1115 EXPECT_EQ(kEqual, s[0]->flags_condition()); | 1121 EXPECT_EQ(kEqual, s[0]->flags_condition()); |
1116 } | 1122 } |
1117 } | 1123 } |
1118 | 1124 |
1119 } // namespace compiler | 1125 } // namespace compiler |
1120 } // namespace internal | 1126 } // namespace internal |
1121 } // namespace v8 | 1127 } // namespace v8 |
OLD | NEW |