blob: 230e096b08d2be1867231512cf4894adf8449a38 [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=alpha | not grep -i ctpop
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00004declare i64 @llvm.ctlz.i64(i64)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00006define i64 @bar(i64 %x) {
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007entry:
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00008 %tmp.1 = call i64 @llvm.ctlz.i64( i64 %x ) ; <i64> [#uses=1]
9 ret i64 %tmp.1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010}
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000011