For PR1319:
[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 ; XFAIL: *
12
13 declare long %llvm.ctpop.i64(long)
14
15 implementation   ; Functions:
16
17 long %bar(long %x) {
18 entry:
19         %tmp.1 = call long %llvm.ctpop.i64( long %x ) 
20         ret long %tmp.1
21 }