blob: 2c51e8afa5580a023d9892e0e83b628d25d90f0b [file] [log] [blame]
Nate Begemane066d682005-05-11 23:45:54 +00001; Make sure this testcase does not use ctpop
Tanya Lattnercfab3da2008-02-19 08:07:33 +00002; RUN: llvm-as < %s | llc -march=ppc32 | grep -i cntlzw
Nate Begemane066d682005-05-11 23:45:54 +00003
Tanya Lattnercfab3da2008-02-19 08:07:33 +00004declare i32 @llvm.cttz.i32(i32)
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:
Tanya Lattnercfab3da2008-02-19 08:07:33 +00008 %tmp.1 = call i32 @llvm.cttz.i32( i32 %x ) ; <i32> [#uses=1]
9 ret i32 %tmp.1
Nate Begemane066d682005-05-11 23:45:54 +000010}
Tanya Lattnercfab3da2008-02-19 08:07:33 +000011