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

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

Issue 1132033002: [turbofan] Float32Abs and Float64Abs are supported by all backends. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « src/compiler/common-operator-reducer.cc ('k') | src/compiler/machine-operator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "src/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/compiler/instruction-selector-impl.h" 6 #include "src/compiler/instruction-selector-impl.h"
7 #include "src/compiler/node-matchers.h" 7 #include "src/compiler/node-matchers.h"
8 #include "src/compiler/node-properties.h" 8 #include "src/compiler/node-properties.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 1288 matching lines...) Expand 10 before | Expand all | Expand 10 after
1299 Node* right = node->InputAt(1); 1299 Node* right = node->InputAt(1);
1300 Emit(kSSEFloat64InsertHighWord32, g.DefineSameAsFirst(node), 1300 Emit(kSSEFloat64InsertHighWord32, g.DefineSameAsFirst(node),
1301 g.UseRegister(left), g.Use(right)); 1301 g.UseRegister(left), g.Use(right));
1302 } 1302 }
1303 1303
1304 1304
1305 // static 1305 // static
1306 MachineOperatorBuilder::Flags 1306 MachineOperatorBuilder::Flags
1307 InstructionSelector::SupportedMachineOperatorFlags() { 1307 InstructionSelector::SupportedMachineOperatorFlags() {
1308 MachineOperatorBuilder::Flags flags = 1308 MachineOperatorBuilder::Flags flags =
1309 MachineOperatorBuilder::kFloat32Abs |
1310 MachineOperatorBuilder::kFloat32Max | 1309 MachineOperatorBuilder::kFloat32Max |
1311 MachineOperatorBuilder::kFloat32Min | 1310 MachineOperatorBuilder::kFloat32Min |
1312 MachineOperatorBuilder::kFloat64Abs |
1313 MachineOperatorBuilder::kFloat64Max | 1311 MachineOperatorBuilder::kFloat64Max |
1314 MachineOperatorBuilder::kFloat64Min | 1312 MachineOperatorBuilder::kFloat64Min |
1315 MachineOperatorBuilder::kWord32ShiftIsSafe; 1313 MachineOperatorBuilder::kWord32ShiftIsSafe;
1316 if (CpuFeatures::IsSupported(SSE4_1)) { 1314 if (CpuFeatures::IsSupported(SSE4_1)) {
1317 flags |= MachineOperatorBuilder::kFloat64RoundDown | 1315 flags |= MachineOperatorBuilder::kFloat64RoundDown |
1318 MachineOperatorBuilder::kFloat64RoundTruncate; 1316 MachineOperatorBuilder::kFloat64RoundTruncate;
1319 } 1317 }
1320 return flags; 1318 return flags;
1321 } 1319 }
1322 1320
1323 } // namespace compiler 1321 } // namespace compiler
1324 } // namespace internal 1322 } // namespace internal
1325 } // namespace v8 1323 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/common-operator-reducer.cc ('k') | src/compiler/machine-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698