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