For PR1336:
[oota-llvm.git] / test / CodeGen / Alpha / ctpop.ll
1 ; Make sure this testcase codegens to the ctpop instruction
2 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mcpu=ev67 | grep -i ctpop
3 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mattr=+CIX | \
4 ; RUN:   grep -i ctpop
5 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mcpu=ev6 | \
6 ; RUN:   not grep -i ctpop
7 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mcpu=ev56 | \
8 ; RUN:   not grep -i ctpop
9 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mattr=-CIX | \
10 ; RUN:   not grep -i ctpop
11
12 declare long %llvm.ctpop.i64(long)
13
14 implementation   ; Functions:
15
16 long %bar(long %x) {
17 entry:
18         %tmp.1 = call long %llvm.ctpop.i64( long %x ) 
19         ret long %tmp.1
20 }