blob: 56027dd3ea7b914ce063a746e536ef6dbfef30a4 [file] [log] [blame]
Andrew Lenharth50d435f2005-05-11 17:23:41 +00001; Make sure this testcase does not use ctpop
Tanya Lattner53a66d12008-02-19 01:41:04 +00002; RUN: llvm-as < %s | llc -march=alpha | not grep -i ctpop
Andrew Lenharth50d435f2005-05-11 17:23:41 +00003
Tanya Lattner53a66d12008-02-19 01:41:04 +00004declare i64 @llvm.ctlz.i64(i64)
Andrew Lenharth50d435f2005-05-11 17:23:41 +00005
Tanya Lattner53a66d12008-02-19 01:41:04 +00006define i64 @bar(i64 %x) {
Andrew Lenharth50d435f2005-05-11 17:23:41 +00007entry:
Tanya Lattner53a66d12008-02-19 01:41:04 +00008 %tmp.1 = call i64 @llvm.ctlz.i64( i64 %x ) ; <i64> [#uses=1]
9 ret i64 %tmp.1
Andrew Lenharth50d435f2005-05-11 17:23:41 +000010}
Tanya Lattner53a66d12008-02-19 01:41:04 +000011