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

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

Issue 1072963002: PPC: [turbofan] Add new Float32Abs and Float64Abs operators. (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/ppc/instruction-codes-ppc.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/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/ppc/macro-assembler-ppc.h" 10 #include "src/ppc/macro-assembler-ppc.h"
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 break; 850 break;
851 case kPPC_Neg: 851 case kPPC_Neg:
852 __ neg(i.OutputRegister(), i.InputRegister(0), LeaveOE, i.OutputRCBit()); 852 __ neg(i.OutputRegister(), i.InputRegister(0), LeaveOE, i.OutputRCBit());
853 break; 853 break;
854 case kPPC_MaxDouble: 854 case kPPC_MaxDouble:
855 ASSEMBLE_FLOAT_MAX(kScratchDoubleReg); 855 ASSEMBLE_FLOAT_MAX(kScratchDoubleReg);
856 break; 856 break;
857 case kPPC_MinDouble: 857 case kPPC_MinDouble:
858 ASSEMBLE_FLOAT_MIN(kScratchDoubleReg); 858 ASSEMBLE_FLOAT_MIN(kScratchDoubleReg);
859 break; 859 break;
860 case kPPC_AbsDouble:
861 ASSEMBLE_FLOAT_UNOP_RC(fabs);
862 break;
860 case kPPC_SqrtDouble: 863 case kPPC_SqrtDouble:
861 ASSEMBLE_FLOAT_UNOP_RC(fsqrt); 864 ASSEMBLE_FLOAT_UNOP_RC(fsqrt);
862 break; 865 break;
863 case kPPC_FloorDouble: 866 case kPPC_FloorDouble:
864 ASSEMBLE_FLOAT_UNOP_RC(frim); 867 ASSEMBLE_FLOAT_UNOP_RC(frim);
865 break; 868 break;
866 case kPPC_CeilDouble: 869 case kPPC_CeilDouble:
867 ASSEMBLE_FLOAT_UNOP_RC(frip); 870 ASSEMBLE_FLOAT_UNOP_RC(frip);
868 break; 871 break;
869 case kPPC_TruncateDouble: 872 case kPPC_TruncateDouble:
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
1488 } 1491 }
1489 } 1492 }
1490 MarkLazyDeoptSite(); 1493 MarkLazyDeoptSite();
1491 } 1494 }
1492 1495
1493 #undef __ 1496 #undef __
1494 1497
1495 } // namespace compiler 1498 } // namespace compiler
1496 } // namespace internal 1499 } // namespace internal
1497 } // namespace v8 1500 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/ppc/instruction-codes-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698