blob: ab493a068a32cea527eaed7f66d01862ad0044d0 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; Make sure this testcase does not use ctpop
Dan Gohmanda594cf2009-09-09 00:09:15 +00002; RUN: llc < %s -march=ppc32 | grep -i cntlzw
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003
Tanya Lattner5ebaf3b2008-02-19 08:07:33 +00004declare i32 @llvm.cttz.i32(i32)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005
Tanya Lattner5ebaf3b2008-02-19 08:07:33 +00006define i32 @bar(i32 %x) {
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007entry:
Tanya Lattner5ebaf3b2008-02-19 08:07:33 +00008 %tmp.1 = call i32 @llvm.cttz.i32( i32 %x ) ; <i32> [#uses=1]
9 ret i32 %tmp.1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010}
Tanya Lattner5ebaf3b2008-02-19 08:07:33 +000011