Add the PPC64 popcntd instruction
authorHal Finkel <hfinkel@anl.gov>
Thu, 28 Mar 2013 13:29:47 +0000 (13:29 +0000)
committerHal Finkel <hfinkel@anl.gov>
Thu, 28 Mar 2013 13:29:47 +0000 (13:29 +0000)
commitc53ab4d77f4b3d2905cf9ad625c28ff6b1c04aff
treeb2fcb51be8d19be85b7154477017f83ee096e6da
parentf464481db0c3b5404004b510921ca454803fd1d0
Add the PPC64 popcntd instruction

PPC ISA 2.06 (P7, A2, etc.) has a popcntd instruction. Add this instruction and
tell TTI about it so that popcount-loop recognition will know about it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178233 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPC.td
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCInstr64Bit.td
lib/Target/PowerPC/PPCSubtarget.cpp
lib/Target/PowerPC/PPCSubtarget.h
lib/Target/PowerPC/PPCTargetTransformInfo.cpp
test/CodeGen/PowerPC/popcnt.ll [new file with mode: 0644]