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

Side by Side Diff: src/compiler/x64/instruction-selector-x64.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/ppc/instruction-selector-ppc.cc ('k') | test/cctest/compiler/test-run-machops.cc » ('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 <algorithm> 5 #include <algorithm>
6 6
7 #include "src/base/adapters.h" 7 #include "src/base/adapters.h"
8 #include "src/compiler/instruction-selector-impl.h" 8 #include "src/compiler/instruction-selector-impl.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 1601 matching lines...) Expand 10 before | Expand all | Expand 10 after
1612 Node* right = node->InputAt(1); 1612 Node* right = node->InputAt(1);
1613 Emit(kSSEFloat64InsertHighWord32, g.DefineSameAsFirst(node), 1613 Emit(kSSEFloat64InsertHighWord32, g.DefineSameAsFirst(node),
1614 g.UseRegister(left), g.Use(right)); 1614 g.UseRegister(left), g.Use(right));
1615 } 1615 }
1616 1616
1617 1617
1618 // static 1618 // static
1619 MachineOperatorBuilder::Flags 1619 MachineOperatorBuilder::Flags
1620 InstructionSelector::SupportedMachineOperatorFlags() { 1620 InstructionSelector::SupportedMachineOperatorFlags() {
1621 MachineOperatorBuilder::Flags flags = 1621 MachineOperatorBuilder::Flags flags =
1622 MachineOperatorBuilder::kFloat32Abs |
1623 MachineOperatorBuilder::kFloat32Max | 1622 MachineOperatorBuilder::kFloat32Max |
1624 MachineOperatorBuilder::kFloat32Min | 1623 MachineOperatorBuilder::kFloat32Min |
1625 MachineOperatorBuilder::kFloat64Abs |
1626 MachineOperatorBuilder::kFloat64Max | 1624 MachineOperatorBuilder::kFloat64Max |
1627 MachineOperatorBuilder::kFloat64Min | 1625 MachineOperatorBuilder::kFloat64Min |
1628 MachineOperatorBuilder::kWord32ShiftIsSafe; 1626 MachineOperatorBuilder::kWord32ShiftIsSafe;
1629 if (CpuFeatures::IsSupported(SSE4_1)) { 1627 if (CpuFeatures::IsSupported(SSE4_1)) {
1630 flags |= MachineOperatorBuilder::kFloat64RoundDown | 1628 flags |= MachineOperatorBuilder::kFloat64RoundDown |
1631 MachineOperatorBuilder::kFloat64RoundTruncate; 1629 MachineOperatorBuilder::kFloat64RoundTruncate;
1632 } 1630 }
1633 return flags; 1631 return flags;
1634 } 1632 }
1635 1633
1636 } // namespace compiler 1634 } // namespace compiler
1637 } // namespace internal 1635 } // namespace internal
1638 } // namespace v8 1636 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ppc/instruction-selector-ppc.cc ('k') | test/cctest/compiler/test-run-machops.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698