2005-05-12 07:45:54 +08:00
|
|
|
; Make sure this testcase does not use ctpop
|
2017-08-02 06:20:41 +08:00
|
|
|
; RUN: llc -verify-machineinstrs < %s -mtriple=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
|
2015-10-28 11:26:45 +08:00
|
|
|
; 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
|
|
|
|