2008-02-19 02:41:04 +01:00
|
|
|
; RUN: llvm-as < %s | \
|
2007-04-16 19:36:08 +02:00
|
|
|
; RUN: llc -march=sparc -mattr=v9 -enable-sparc-v9-insts
|
2008-02-19 02:41:04 +01:00
|
|
|
; RUN: llvm-as < %s | llc -march=sparc -mattr=-v9 | \
|
2007-04-16 19:36:08 +02:00
|
|
|
; RUN: not grep popc
|
2008-02-19 02:41:04 +01:00
|
|
|
; RUN: llvm-as < %s | \
|
2007-04-16 19:36:08 +02:00
|
|
|
; RUN: llc -march=sparc -mattr=v9 -enable-sparc-v9-insts | grep popc
|
2006-02-05 06:52:55 +01:00
|
|
|
|
2008-02-19 02:41:04 +01: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 06:52:55 +01:00
|
|
|
}
|
|
|
|
|