blob: e68d23708edd1760003a4218297407042943ae8f [file] [log] [blame]
Andrew Lenharthe8aebf72005-05-04 15:56:34 +00001; Make sure this testcase codegens to the ctpop instruction
Reid Spencer65f47a32007-04-15 18:40:57 +00002; 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'
Andrew Lenharth14197112005-05-04 15:20:16 +000011
12declare long %llvm.ctpop(long)
13
14implementation ; Functions:
15
16long %bar(long %x) {
17entry:
18 %tmp.1 = call long %llvm.ctpop( long %x )
19 ret long %tmp.1
20}