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

Side by Side Diff: src/compiler/arm/instruction-selector-arm.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 | « no previous file | src/compiler/arm64/instruction-selector-arm64.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 "src/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/base/bits.h" 6 #include "src/base/bits.h"
7 #include "src/compiler/instruction-selector-impl.h" 7 #include "src/compiler/instruction-selector-impl.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/compiler/node-properties.h" 9 #include "src/compiler/node-properties.h"
10 10
(...skipping 1576 matching lines...) Expand 10 before | Expand all | Expand 10 after
1587 } 1587 }
1588 Emit(kArmVmovHighF64U32, g.DefineSameAsFirst(node), g.UseRegister(left), 1588 Emit(kArmVmovHighF64U32, g.DefineSameAsFirst(node), g.UseRegister(left),
1589 g.UseRegister(right)); 1589 g.UseRegister(right));
1590 } 1590 }
1591 1591
1592 1592
1593 // static 1593 // static
1594 MachineOperatorBuilder::Flags 1594 MachineOperatorBuilder::Flags
1595 InstructionSelector::SupportedMachineOperatorFlags() { 1595 InstructionSelector::SupportedMachineOperatorFlags() {
1596 MachineOperatorBuilder::Flags flags = 1596 MachineOperatorBuilder::Flags flags =
1597 MachineOperatorBuilder::kFloat32Abs |
1598 MachineOperatorBuilder::kFloat64Abs |
1599 MachineOperatorBuilder::kInt32DivIsSafe | 1597 MachineOperatorBuilder::kInt32DivIsSafe |
1600 MachineOperatorBuilder::kUint32DivIsSafe; 1598 MachineOperatorBuilder::kUint32DivIsSafe;
1601
1602 if (CpuFeatures::IsSupported(ARMv8)) { 1599 if (CpuFeatures::IsSupported(ARMv8)) {
1603 flags |= MachineOperatorBuilder::kFloat64RoundDown | 1600 flags |= MachineOperatorBuilder::kFloat64RoundDown |
1604 MachineOperatorBuilder::kFloat64RoundTruncate | 1601 MachineOperatorBuilder::kFloat64RoundTruncate |
1605 MachineOperatorBuilder::kFloat64RoundTiesAway; 1602 MachineOperatorBuilder::kFloat64RoundTiesAway;
1606 } 1603 }
1607 return flags; 1604 return flags;
1608 } 1605 }
1609 1606
1610 } // namespace compiler 1607 } // namespace compiler
1611 } // namespace internal 1608 } // namespace internal
1612 } // namespace v8 1609 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm64/instruction-selector-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698