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

Side by Side Diff: src/compiler/arm64/instruction-selector-arm64-unittest.cc

Issue 596703004: [turbofan] Add backend support for float32. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/arm64/instruction-selector-arm64.cc ('k') | src/compiler/ia32/code-generator-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698