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