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

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

Issue 2252863003: [turbofan] Add Float32(Max|Min) machine operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Extract the code of the (min|max) calculation. 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
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 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after
1360 1360
1361 void InstructionSelector::VisitFloat32Abs(Node* node) { 1361 void InstructionSelector::VisitFloat32Abs(Node* node) {
1362 VisitFloatUnop(this, node, node->InputAt(0), kAVXFloat32Abs, kSSEFloat32Abs); 1362 VisitFloatUnop(this, node, node->InputAt(0), kAVXFloat32Abs, kSSEFloat32Abs);
1363 } 1363 }
1364 1364
1365 1365
1366 void InstructionSelector::VisitFloat32Sqrt(Node* node) { 1366 void InstructionSelector::VisitFloat32Sqrt(Node* node) {
1367 VisitRO(this, node, kSSEFloat32Sqrt); 1367 VisitRO(this, node, kSSEFloat32Sqrt);
1368 } 1368 }
1369 1369
1370 void InstructionSelector::VisitFloat32Max(Node* node) {
1371 VisitRRO(this, node, kSSEFloat32Max);
1372 }
1373
1374 void InstructionSelector::VisitFloat32Min(Node* node) {
1375 VisitRRO(this, node, kSSEFloat32Min);
1376 }
1370 1377
1371 void InstructionSelector::VisitFloat64Add(Node* node) { 1378 void InstructionSelector::VisitFloat64Add(Node* node) {
1372 VisitFloatBinop(this, node, kAVXFloat64Add, kSSEFloat64Add); 1379 VisitFloatBinop(this, node, kAVXFloat64Add, kSSEFloat64Add);
1373 } 1380 }
1374 1381
1375 1382
1376 void InstructionSelector::VisitFloat64Sub(Node* node) { 1383 void InstructionSelector::VisitFloat64Sub(Node* node) {
1377 VisitFloatBinop(this, node, kAVXFloat64Sub, kSSEFloat64Sub); 1384 VisitFloatBinop(this, node, kAVXFloat64Sub, kSSEFloat64Sub);
1378 } 1385 }
1379 1386
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
2211 // static 2218 // static
2212 MachineOperatorBuilder::AlignmentRequirements 2219 MachineOperatorBuilder::AlignmentRequirements
2213 InstructionSelector::AlignmentRequirements() { 2220 InstructionSelector::AlignmentRequirements() {
2214 return MachineOperatorBuilder::AlignmentRequirements:: 2221 return MachineOperatorBuilder::AlignmentRequirements::
2215 FullUnalignedAccessSupport(); 2222 FullUnalignedAccessSupport();
2216 } 2223 }
2217 2224
2218 } // namespace compiler 2225 } // namespace compiler
2219 } // namespace internal 2226 } // namespace internal
2220 } // namespace v8 2227 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698