blob: 1d365d47a8772d1015deaf2324c67e0b058ca56d [file] [log] [blame]
Nate Begemane066d682005-05-11 23:45:54 +00001; Make sure this testcase does not use ctpop
Dan Gohmanfce288f2009-09-09 00:09:15 +00002; RUN: llc < %s -march=ppc32 | grep -i cntlzw
Nate Begemane066d682005-05-11 23:45:54 +00003
Chandler Carruthddbc2742011-12-12 11:59:10 +00004declare i32 @llvm.cttz.i32(i32, i1)
Nate Begemane066d682005-05-11 23:45:54 +00005
Tanya Lattnercfab3da2008-02-19 08:07:33 +00006define i32 @bar(i32 %x) {
Nate Begemane066d682005-05-11 23:45:54 +00007entry:
Chandler Carruthddbc2742011-12-12 11:59:10 +00008 %tmp.1 = call i32 @llvm.cttz.i32( i32 %x, i1 true ) ; <i32> [#uses=1]
Tanya Lattnercfab3da2008-02-19 08:07:33 +00009 ret i32 %tmp.1
Nate Begemane066d682005-05-11 23:45:54 +000010}
Tanya Lattnercfab3da2008-02-19 08:07:33 +000011