blob: bbd35ffa9799c3022d43c6a3582bfb95ae7516be [file] [log] [blame]
Andrew Lenharthe8aebf72005-05-04 15:56:34 +00001; Make sure this testcase codegens to the ctpop instruction
Reid Spencer69ccadd2006-12-02 04:23:10 +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 | grep -i 'ctpop'
4; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mcpu=ev6 | not grep -i 'ctpop'
5; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mcpu=ev56 | not grep -i 'ctpop'
6; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mattr=-CIX | not grep -i 'ctpop'
Andrew Lenharth542f2df2005-09-30 20:30:24 +00007
Andrew Lenharth14197112005-05-04 15:20:16 +00008
9declare long %llvm.ctpop(long)
10
11implementation ; Functions:
12
13long %bar(long %x) {
14entry:
15 %tmp.1 = call long %llvm.ctpop( long %x )
16 ret long %tmp.1
17}