Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / CodeGen / PowerPC / cttz.ll
1 ; Make sure this testcase does not use ctpop
2 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep -i 'cntlzw'
3
4 declare int %llvm.cttz(int)
5
6 implementation   ; Functions:
7
8 int %bar(int %x) {
9 entry:
10         %tmp.1 = call int %llvm.cttz( int %x ) 
11         ret int %tmp.1
12 }