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

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

Issue 1040053002: Reland "Match fneg for -0.0 - x pattern." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 break; 719 break;
720 } 720 }
721 case kArm64Float64Max: 721 case kArm64Float64Max:
722 __ Fmax(i.OutputDoubleRegister(), i.InputDoubleRegister(0), 722 __ Fmax(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
723 i.InputDoubleRegister(1)); 723 i.InputDoubleRegister(1));
724 break; 724 break;
725 case kArm64Float64Min: 725 case kArm64Float64Min:
726 __ Fmin(i.OutputDoubleRegister(), i.InputDoubleRegister(0), 726 __ Fmin(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
727 i.InputDoubleRegister(1)); 727 i.InputDoubleRegister(1));
728 break; 728 break;
729 case kArm64Float64Neg:
730 __ Fneg(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
731 break;
729 case kArm64Float64Sqrt: 732 case kArm64Float64Sqrt:
730 __ Fsqrt(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); 733 __ Fsqrt(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
731 break; 734 break;
732 case kArm64Float32ToFloat64: 735 case kArm64Float32ToFloat64:
733 __ Fcvt(i.OutputDoubleRegister(), i.InputDoubleRegister(0).S()); 736 __ Fcvt(i.OutputDoubleRegister(), i.InputDoubleRegister(0).S());
734 break; 737 break;
735 case kArm64Float64ToFloat32: 738 case kArm64Float64ToFloat32:
736 __ Fcvt(i.OutputDoubleRegister().S(), i.InputDoubleRegister(0)); 739 __ Fcvt(i.OutputDoubleRegister().S(), i.InputDoubleRegister(0));
737 break; 740 break;
738 case kArm64Float64ToInt32: 741 case kArm64Float64ToInt32:
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 } 1251 }
1249 } 1252 }
1250 MarkLazyDeoptSite(); 1253 MarkLazyDeoptSite();
1251 } 1254 }
1252 1255
1253 #undef __ 1256 #undef __
1254 1257
1255 } // namespace compiler 1258 } // namespace compiler
1256 } // namespace internal 1259 } // namespace internal
1257 } // namespace v8 1260 } // 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