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

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

Issue 1013743006: [turbofan][arm64] Match fneg for -0.0 - x pattern. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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-codes-arm64.h » ('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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/arm64/macro-assembler-arm64.h" 7 #include "src/arm64/macro-assembler-arm64.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 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 // TODO(dcarney): implement directly. See note in lithium-codegen-arm64.cc 682 // TODO(dcarney): implement directly. See note in lithium-codegen-arm64.cc
683 FrameScope scope(masm(), StackFrame::MANUAL); 683 FrameScope scope(masm(), StackFrame::MANUAL);
684 DCHECK(d0.is(i.InputDoubleRegister(0))); 684 DCHECK(d0.is(i.InputDoubleRegister(0)));
685 DCHECK(d1.is(i.InputDoubleRegister(1))); 685 DCHECK(d1.is(i.InputDoubleRegister(1)));
686 DCHECK(d0.is(i.OutputDoubleRegister())); 686 DCHECK(d0.is(i.OutputDoubleRegister()));
687 // TODO(dcarney): make sure this saves all relevant registers. 687 // TODO(dcarney): make sure this saves all relevant registers.
688 __ CallCFunction(ExternalReference::mod_two_doubles_operation(isolate()), 688 __ CallCFunction(ExternalReference::mod_two_doubles_operation(isolate()),
689 0, 2); 689 0, 2);
690 break; 690 break;
691 } 691 }
692 case kArm64Float64Neg:
693 __ Fneg(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
694 break;
692 case kArm64Float64Sqrt: 695 case kArm64Float64Sqrt:
693 __ Fsqrt(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); 696 __ Fsqrt(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
694 break; 697 break;
695 case kArm64Float32ToFloat64: 698 case kArm64Float32ToFloat64:
696 __ Fcvt(i.OutputDoubleRegister(), i.InputDoubleRegister(0).S()); 699 __ Fcvt(i.OutputDoubleRegister(), i.InputDoubleRegister(0).S());
697 break; 700 break;
698 case kArm64Float64ToFloat32: 701 case kArm64Float64ToFloat32:
699 __ Fcvt(i.OutputDoubleRegister().S(), i.InputDoubleRegister(0)); 702 __ Fcvt(i.OutputDoubleRegister().S(), i.InputDoubleRegister(0));
700 break; 703 break;
701 case kArm64Float64ToInt32: 704 case kArm64Float64ToInt32:
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
1219 } 1222 }
1220 } 1223 }
1221 MarkLazyDeoptSite(); 1224 MarkLazyDeoptSite();
1222 } 1225 }
1223 1226
1224 #undef __ 1227 #undef __
1225 1228
1226 } // namespace compiler 1229 } // namespace compiler
1227 } // namespace internal 1230 } // namespace internal
1228 } // namespace v8 1231 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm64/instruction-codes-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698