• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; Make sure this testcase codegens to the ctpop instruction
2; RUN: llc < %s -march=alpha -mcpu=ev67 | grep -i ctpop
3; RUN: llc < %s -march=alpha -mattr=+CIX | \
4; RUN:   grep -i ctpop
5; RUN: llc < %s -march=alpha -mcpu=ev6 | \
6; RUN:   not grep -i ctpop
7; RUN: llc < %s -march=alpha -mattr=-CIX | \
8; RUN:   not grep -i ctpop
9
10declare i64 @llvm.ctpop.i64(i64)
11
12define i64 @bar(i64 %x) {
13entry:
14        %tmp.1 = call i64 @llvm.ctpop.i64( i64 %x )             ; <i64> [#uses=1]
15        ret i64 %tmp.1
16}
17
18