blob: 7da46df16ab1952abe697e0696eb990cfa50622f [file] [log] [blame]
Andrew Lenharthe8aebf72005-05-04 15:56:34 +00001; Make sure this testcase codegens to the ctpop instruction
Andrew Lenharth542f2df2005-09-30 20:30:24 +00002; RUN: llvm-as < %s | llc -march=alpha -mcpu=ev67 | grep -i 'ctpop'
3; RUN: llvm-as < %s | llc -march=alpha -mattr=+CIX | grep -i 'ctpop'
4; RUN: llvm-as < %s | llc -march=alpha -mcpu=ev6 | not grep -i 'ctpop'
5; RUN: llvm-as < %s | llc -march=alpha -mcpu=ev56 | not grep -i 'ctpop'
6; RUN: llvm-as < %s | llc -march=alpha -mattr=-CIX | not grep -i 'ctpop'
7
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}