blob: 3751d6698e52cfae21a12b4df886445d09193140 [file] [log] [blame]
Nate Begemane066d682005-05-11 23:45:54 +00001; Make sure this testcase does not use ctpop
Reid Spencerc58ef012007-04-15 21:17:45 +00002; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep -i cntlzw
Nate Begemane066d682005-05-11 23:45:54 +00003
Reid Spenceree45c552006-12-02 20:38:37 +00004declare uint %llvm.cttz.i32(uint)
Nate Begemane066d682005-05-11 23:45:54 +00005
6implementation ; Functions:
7
Reid Spenceree45c552006-12-02 20:38:37 +00008uint %bar(uint %x) {
Nate Begemane066d682005-05-11 23:45:54 +00009entry:
Reid Spenceree45c552006-12-02 20:38:37 +000010 %tmp.1 = call uint %llvm.cttz.i32( uint %x )
11 ret uint %tmp.1
Nate Begemane066d682005-05-11 23:45:54 +000012}