1 ; RUN: llc < %s -march=sparc -mattr=-v9 | FileCheck %s -check-prefix=V8
2 ; RUN: llc < %s -march=sparc -mattr=+v9 | FileCheck %s -check-prefix=V9
3 ; RUN: llc < %s -march=sparcv9 | FileCheck %s -check-prefix=SPARC64
5 declare i32 @llvm.ctpop.i32(i32)
13 ; V9-NEXT: popc %o0, %o0
16 ; SPARC64: srl %o0, 0, %o0
18 ; SPARC64: popc %o0, %o0
20 define i32 @test(i32 %X) {
21 %Y = call i32 @llvm.ctpop.i32( i32 %X ) ; <i32> [#uses=1]