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