Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / CodeGen / SPARC / ctpop.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=sparc -mattr=-v9 &&
2 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=sparc -mattr=v9 -enable-sparc-v9-insts &&
3 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=sparc -mattr=-v9 | not grep popc &&
4 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=sparc -mattr=v9 -enable-sparc-v9-insts | grep popc
5
6 declare uint %llvm.ctpop.i32(uint)
7 uint %test(uint %X) {
8         %Y = call uint %llvm.ctpop.i32(uint %X)
9         ret uint %Y
10 }
11