2005-05-12 01:23:41 +08:00
|
|
|
; Make sure this testcase does not use ctpop
|
2008-02-19 09:41:04 +08:00
|
|
|
; RUN: llvm-as < %s | llc -march=alpha | not grep -i ctpop
|
2005-05-12 01:23:41 +08:00
|
|
|
|
2008-02-19 09:41:04 +08:00
|
|
|
declare i64 @llvm.ctlz.i64(i64)
|
2005-05-12 01:23:41 +08:00
|
|
|
|
2008-02-19 09:41:04 +08:00
|
|
|
define i64 @bar(i64 %x) {
|
2005-05-12 01:23:41 +08:00
|
|
|
entry:
|
2008-02-19 09:41:04 +08:00
|
|
|
%tmp.1 = call i64 @llvm.ctlz.i64( i64 %x ) ; <i64> [#uses=1]
|
|
|
|
ret i64 %tmp.1
|
2005-05-12 01:23:41 +08:00
|
|
|
}
|
2008-02-19 09:41:04 +08:00
|
|
|
|