Add the PPC popcntw instruction
The popcntw instruction is available whenever the popcntd instruction is available, and performs a separate popcnt on the lower and upper 32-bits. Ignoring the high-order count, this can be used for the 32-bit input case (saving on the explicit zero extension otherwise required to use popcntd). llvm-svn: 178470
Showing
- llvm/lib/Target/PowerPC/PPCISelLowering.cpp 1 addition, 1 deletionllvm/lib/Target/PowerPC/PPCISelLowering.cpp
- llvm/lib/Target/PowerPC/PPCInstr64Bit.td 7 additions, 0 deletionsllvm/lib/Target/PowerPC/PPCInstr64Bit.td
- llvm/test/CodeGen/PowerPC/popcnt.ll 5 additions, 6 deletionsllvm/test/CodeGen/PowerPC/popcnt.ll
Loading
Please register or sign in to comment