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

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

Issue 1433733002: PPC64: Implemented the Word64Clz TurboFan operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/compiler/osr.h" 10 #include "src/compiler/osr.h"
(...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 case kPPC_RoundDouble: 937 case kPPC_RoundDouble:
938 ASSEMBLE_FLOAT_UNOP_RC(frin); 938 ASSEMBLE_FLOAT_UNOP_RC(frin);
939 break; 939 break;
940 case kPPC_NegDouble: 940 case kPPC_NegDouble:
941 ASSEMBLE_FLOAT_UNOP_RC(fneg); 941 ASSEMBLE_FLOAT_UNOP_RC(fneg);
942 break; 942 break;
943 case kPPC_Cntlz32: 943 case kPPC_Cntlz32:
944 __ cntlzw_(i.OutputRegister(), i.InputRegister(0)); 944 __ cntlzw_(i.OutputRegister(), i.InputRegister(0));
945 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 945 DCHECK_EQ(LeaveRC, i.OutputRCBit());
946 break; 946 break;
947 #if V8_TARGET_ARCH_PPC64
948 case kPPC_Cntlz64:
949 __ cntlzd_(i.OutputRegister(), i.InputRegister(0));
950 DCHECK_EQ(LeaveRC, i.OutputRCBit());
951 break;
952 #endif
947 case kPPC_Popcnt32: 953 case kPPC_Popcnt32:
948 __ popcntw(i.OutputRegister(), i.InputRegister(0)); 954 __ popcntw(i.OutputRegister(), i.InputRegister(0));
949 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 955 DCHECK_EQ(LeaveRC, i.OutputRCBit());
950 break; 956 break;
951 case kPPC_Cmp32: 957 case kPPC_Cmp32:
952 ASSEMBLE_COMPARE(cmpw, cmplw); 958 ASSEMBLE_COMPARE(cmpw, cmplw);
953 break; 959 break;
954 #if V8_TARGET_ARCH_PPC64 960 #if V8_TARGET_ARCH_PPC64
955 case kPPC_Cmp64: 961 case kPPC_Cmp64:
956 ASSEMBLE_COMPARE(cmp, cmpl); 962 ASSEMBLE_COMPARE(cmp, cmpl);
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
1652 padding_size -= v8::internal::Assembler::kInstrSize; 1658 padding_size -= v8::internal::Assembler::kInstrSize;
1653 } 1659 }
1654 } 1660 }
1655 } 1661 }
1656 1662
1657 #undef __ 1663 #undef __
1658 1664
1659 } // namespace compiler 1665 } // namespace compiler
1660 } // namespace internal 1666 } // namespace internal
1661 } // namespace v8 1667 } // 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