Add a lsr common loop invariant hoisting test case
[oota-llvm.git] / test / CodeGen / SPARC / ctpop.ll
1 ; RUN: llvm-as < %s | llc -march=sparc -mattr=-v9 &&
2 ; RUN: llvm-as < %s | llc -march=sparc -mattr=v9 -enable-sparc-v9-insts &&
3 ; RUN: llvm-as < %s | llc -march=sparc -mattr=-v9 | not grep popc &&
4 ; RUN: llvm-as < %s | 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