2005-05-12 07:45:54 +08:00
|
|
|
; Make sure this testcase does not use ctpop
|
2013-04-02 00:31:56 +08:00
|
|
|
; RUN: llc < %s -march=ppc32 -mcpu=g5 | FileCheck %s
|
2005-05-12 07:45:54 +08:00
|
|
|
|
2011-12-12 19:59:10 +08:00
|
|
|
declare i32 @llvm.cttz.i32(i32, i1)
|
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:
|
2013-04-02 00:31:56 +08:00
|
|
|
; CHECK: @bar
|
|
|
|
; CHECK: cntlzw
|
2011-12-12 19:59:10 +08:00
|
|
|
%tmp.1 = call i32 @llvm.cttz.i32( i32 %x, i1 true ) ; <i32> [#uses=1]
|
2008-02-19 16:07:33 +08:00
|
|
|
ret i32 %tmp.1
|
2005-05-12 07:45:54 +08:00
|
|
|
}
|
2008-02-19 16:07:33 +08:00
|
|
|
|