2005-05-12 07:45:54 +08:00
|
|
|
; Make sure this testcase does not use ctpop
|
2009-09-09 08:09:15 +08:00
|
|
|
; RUN: llc < %s -march=ppc32 | grep -i cntlzw
|
2005-05-12 07:45:54 +08:00
|
|
|
|
2008-02-19 16:07:33 +08:00
|
|
|
declare i32 @llvm.cttz.i32(i32)
|
2005-05-12 07:45:54 +08:00
|
|
|
|
2008-02-19 16:07:33 +08:00
|
|
|
define i32 @bar(i32 %x) {
|
2005-05-12 07:45:54 +08:00
|
|
|
entry:
|
2008-02-19 16:07:33 +08:00
|
|
|
%tmp.1 = call i32 @llvm.cttz.i32( i32 %x ) ; <i32> [#uses=1]
|
|
|
|
ret i32 %tmp.1
|
2005-05-12 07:45:54 +08:00
|
|
|
}
|
2008-02-19 16:07:33 +08:00
|
|
|
|