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

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

Issue 2215403002: [turbofan] Make Float32Neg and Float64Neg mandatory operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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 2267 matching lines...) Expand 10 before | Expand all | Expand 10 after
2278 } 2278 }
2279 if (CpuFeatures::IsSupported(ARMv8)) { 2279 if (CpuFeatures::IsSupported(ARMv8)) {
2280 flags |= MachineOperatorBuilder::kFloat32RoundDown | 2280 flags |= MachineOperatorBuilder::kFloat32RoundDown |
2281 MachineOperatorBuilder::kFloat64RoundDown | 2281 MachineOperatorBuilder::kFloat64RoundDown |
2282 MachineOperatorBuilder::kFloat32RoundUp | 2282 MachineOperatorBuilder::kFloat32RoundUp |
2283 MachineOperatorBuilder::kFloat64RoundUp | 2283 MachineOperatorBuilder::kFloat64RoundUp |
2284 MachineOperatorBuilder::kFloat32RoundTruncate | 2284 MachineOperatorBuilder::kFloat32RoundTruncate |
2285 MachineOperatorBuilder::kFloat64RoundTruncate | 2285 MachineOperatorBuilder::kFloat64RoundTruncate |
2286 MachineOperatorBuilder::kFloat64RoundTiesAway | 2286 MachineOperatorBuilder::kFloat64RoundTiesAway |
2287 MachineOperatorBuilder::kFloat32RoundTiesEven | 2287 MachineOperatorBuilder::kFloat32RoundTiesEven |
2288 MachineOperatorBuilder::kFloat64RoundTiesEven | 2288 MachineOperatorBuilder::kFloat64RoundTiesEven;
2289 MachineOperatorBuilder::kFloat32Neg |
2290 MachineOperatorBuilder::kFloat64Neg;
2291 } 2289 }
2292 return flags; 2290 return flags;
2293 } 2291 }
2294 2292
2295 // static 2293 // static
2296 MachineOperatorBuilder::AlignmentRequirements 2294 MachineOperatorBuilder::AlignmentRequirements
2297 InstructionSelector::AlignmentRequirements() { 2295 InstructionSelector::AlignmentRequirements() {
2298 Vector<MachineType> req_aligned = Vector<MachineType>::New(2); 2296 Vector<MachineType> req_aligned = Vector<MachineType>::New(2);
2299 req_aligned[0] = MachineType::Float32(); 2297 req_aligned[0] = MachineType::Float32();
2300 req_aligned[1] = MachineType::Float64(); 2298 req_aligned[1] = MachineType::Float64();
2301 return MachineOperatorBuilder::AlignmentRequirements:: 2299 return MachineOperatorBuilder::AlignmentRequirements::
2302 SomeUnalignedAccessUnsupported(req_aligned, req_aligned); 2300 SomeUnalignedAccessUnsupported(req_aligned, req_aligned);
2303 } 2301 }
2304 2302
2305 } // namespace compiler 2303 } // namespace compiler
2306 } // namespace internal 2304 } // namespace internal
2307 } // namespace v8 2305 } // 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