Legalize for CTLZ generates a ctpop, but this ctpop is not expanded.
[oota-llvm.git] / test / CodeGen / Alpha / ctlz_e.ll
1 ; Make sure this testcase does not use ctpop
2 ; RUN: llvm-as < %s | llc -march=alpha | grep -i 'ctpop' |wc -l |grep 0
3
4 declare ulong %llvm.ctlz(ulong)
5
6 implementation   ; Functions:
7
8 ulong %bar(ulong %x) {
9 entry:
10         %tmp.1 = call ulong %llvm.ctlz( ulong %x ) 
11         ret ulong %tmp.1
12 }