2008-02-19 01:41:04 +00:00
|
|
|
; RUN: llvm-as < %s | \
|
2007-04-16 17:36:08 +00:00
|
|
|
; RUN: llc -march=sparc -mattr=v9 -enable-sparc-v9-insts
|
2008-02-19 01:41:04 +00:00
|
|
|
; RUN: llvm-as < %s | llc -march=sparc -mattr=-v9 | \
|
2007-04-16 17:36:08 +00:00
|
|
|
; RUN: not grep popc
|
2008-02-19 01:41:04 +00:00
|
|
|
; RUN: llvm-as < %s | \
|
2007-04-16 17:36:08 +00:00
|
|
|
; RUN: llc -march=sparc -mattr=v9 -enable-sparc-v9-insts | grep popc
|
2006-02-05 05:52:55 +00:00
|
|
|
|
2008-02-19 01:41:04 +00:00
|
|
|
declare i32 @llvm.ctpop.i32(i32)
|
|
|
|
|
|
|
|
define i32 @test(i32 %X) {
|
|
|
|
%Y = call i32 @llvm.ctpop.i32( i32 %X ) ; <i32> [#uses=1]
|
|
|
|
ret i32 %Y
|
2006-02-05 05:52:55 +00:00
|
|
|
}
|
|
|
|
|