blob: df9524c0bfe14fb64929cc1d3132a3d3b456e17c [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'
Reid Spencer4575ab22007-04-15 23:00:46 +000011; XFAIL: *
Andrew Lenharth14197112005-05-04 15:20:16 +000012
13declare long %llvm.ctpop(long)
14
15implementation ; Functions:
16
17long %bar(long %x) {
18entry:
19 %tmp.1 = call long %llvm.ctpop( long %x )
20 ret long %tmp.1
21}