Add the PPC popcntw instruction
authorHal Finkel <hfinkel@anl.gov>
Mon, 1 Apr 2013 15:58:15 +0000 (15:58 +0000)
committerHal Finkel <hfinkel@anl.gov>
Mon, 1 Apr 2013 15:58:15 +0000 (15:58 +0000)
commit1fce88313e4d46fdd432b68f7c54fde972c0b526
tree37667e799816e865c01a29de851f0b60f8d7f253
parent953783e00c9934bc41077108fffeb1e2a17b00df
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).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178470 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCInstr64Bit.td
test/CodeGen/PowerPC/popcnt.ll