[SparcV9] Use separate instruction patterns for 64 bit arithmetic instructions instea...
[oota-llvm.git] / test / CodeGen / SPARC / ctpop.ll
1 ; RUN: llc < %s -march=sparc -mattr=-v9 | not grep popc
2 ; RUN: llc < %s -march=sparc -mattr=+v9 | grep popc
3
4 declare i32 @llvm.ctpop.i32(i32)
5
6 define i32 @test(i32 %X) {
7         %Y = call i32 @llvm.ctpop.i32( i32 %X )         ; <i32> [#uses=1]
8         ret i32 %Y
9 }
10