Index: src/compiler/ppc/code-generator-ppc.cc |
diff --git a/src/compiler/ppc/code-generator-ppc.cc b/src/compiler/ppc/code-generator-ppc.cc |
index df776fac682f0bf0124f226f8f96b3c1affbc895..85cfab28d921a65f35483e3c9f365dbe095d6f44 100644 |
--- a/src/compiler/ppc/code-generator-ppc.cc |
+++ b/src/compiler/ppc/code-generator-ppc.cc |
@@ -939,6 +939,10 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
__ cntlzw_(i.OutputRegister(), i.InputRegister(0)); |
DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
break; |
+ case kPPC_Popcnt32: |
+ __ popcntw(i.OutputRegister(), i.InputRegister(0)); |
+ DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
+ break; |
case kPPC_Cmp32: |
ASSEMBLE_COMPARE(cmpw, cmplw); |
break; |