28fe9a44296ef13c1a3ba6927081a838e6d911d4
[oota-llvm.git] / test / CodeGen / SPARC / ctpop.ll
1 ; RUN: llvm-as < %s | \
2 ; RUN:   llc -march=sparc -mattr=v9 -enable-sparc-v9-insts
3 ; RUN: llc < %s -march=sparc -mattr=-v9 | \
4 ; RUN:   not grep popc
5 ; RUN: llvm-as < %s | \
6 ; RUN:   llc -march=sparc -mattr=v9 -enable-sparc-v9-insts | grep popc
7
8 declare i32 @llvm.ctpop.i32(i32)
9
10 define i32 @test(i32 %X) {
11         %Y = call i32 @llvm.ctpop.i32( i32 %X )         ; <i32> [#uses=1]
12         ret i32 %Y
13 }
14