Only generate the popc instruction for SPARC CPUs that implement it.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sun, 26 Jan 2014 06:09:59 +0000 (06:09 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sun, 26 Jan 2014 06:09:59 +0000 (06:09 +0000)
commit742f5b57c46be5c2159c1bec59b9752825c63bfa
tree638ea5b811a0463903fa00316a9cb281167b262f
parent06626a69244eb4a6e2ffaf9c04eed7239a694fc7
Only generate the popc instruction for SPARC CPUs that implement it.

The popc instruction is defined in the SPARCv9 instruction set
architecture, but it was emulated on CPUs older than Niagara 2.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200131 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Sparc/Sparc.td
lib/Target/Sparc/SparcISelLowering.cpp
lib/Target/Sparc/SparcSubtarget.cpp
lib/Target/Sparc/SparcSubtarget.h
test/CodeGen/SPARC/ctpop.ll