Index: src/ppc/assembler-ppc.cc |
diff --git a/src/ppc/assembler-ppc.cc b/src/ppc/assembler-ppc.cc |
index 032628b7598dd1a8cf4cf6c8e646585efcc7f7dd..5021b387913034bd22aff8b72d978fe5f87ee7a1 100644 |
--- a/src/ppc/assembler-ppc.cc |
+++ b/src/ppc/assembler-ppc.cc |
@@ -737,6 +737,11 @@ void Assembler::cntlzw_(Register ra, Register rs, RCBit rc) { |
} |
+void Assembler::popcntw(Register ra, Register rs) { |
+ emit(EXT2 | POPCNTW | rs.code() * B21 | ra.code() * B16); |
+} |
+ |
+ |
void Assembler::and_(Register ra, Register rs, Register rb, RCBit rc) { |
x_form(EXT2 | ANDX, ra, rs, rb, rc); |
} |