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

Side by Side Diff: src/compiler/x64/code-generator-x64.cc

Issue 2335603002: [turbofan] Properly emit vsqrtsd if AVX is enabled. (Closed)
Patch Set: Created 4 years, 3 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/compilation-info.h" 7 #include "src/compilation-info.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after
1447 break; 1447 break;
1448 } 1448 }
1449 case kSSEFloat64Neg: { 1449 case kSSEFloat64Neg: {
1450 // TODO(bmeurer): Use RIP relative 128-bit constants. 1450 // TODO(bmeurer): Use RIP relative 128-bit constants.
1451 __ pcmpeqd(kScratchDoubleReg, kScratchDoubleReg); 1451 __ pcmpeqd(kScratchDoubleReg, kScratchDoubleReg);
1452 __ psllq(kScratchDoubleReg, 63); 1452 __ psllq(kScratchDoubleReg, 63);
1453 __ xorpd(i.OutputDoubleRegister(), kScratchDoubleReg); 1453 __ xorpd(i.OutputDoubleRegister(), kScratchDoubleReg);
1454 break; 1454 break;
1455 } 1455 }
1456 case kSSEFloat64Sqrt: 1456 case kSSEFloat64Sqrt:
1457 ASSEMBLE_SSE_UNOP(sqrtsd); 1457 ASSEMBLE_SSE_UNOP(Sqrtsd);
1458 break; 1458 break;
1459 case kSSEFloat64Round: { 1459 case kSSEFloat64Round: {
1460 CpuFeatureScope sse_scope(masm(), SSE4_1); 1460 CpuFeatureScope sse_scope(masm(), SSE4_1);
1461 RoundingMode const mode = 1461 RoundingMode const mode =
1462 static_cast<RoundingMode>(MiscField::decode(instr->opcode())); 1462 static_cast<RoundingMode>(MiscField::decode(instr->opcode()));
1463 __ Roundsd(i.OutputDoubleRegister(), i.InputDoubleRegister(0), mode); 1463 __ Roundsd(i.OutputDoubleRegister(), i.InputDoubleRegister(0), mode);
1464 break; 1464 break;
1465 } 1465 }
1466 case kSSEFloat64ToFloat32: 1466 case kSSEFloat64ToFloat32:
1467 ASSEMBLE_SSE_UNOP(Cvtsd2ss); 1467 ASSEMBLE_SSE_UNOP(Cvtsd2ss);
(...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after
2717 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2717 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
2718 __ Nop(padding_size); 2718 __ Nop(padding_size);
2719 } 2719 }
2720 } 2720 }
2721 2721
2722 #undef __ 2722 #undef __
2723 2723
2724 } // namespace compiler 2724 } // namespace compiler
2725 } // namespace internal 2725 } // namespace internal
2726 } // namespace v8 2726 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698