llvm-6502/test/CodeGen/Alpha/ctpop.ll

14 lines
297 B
LLVM
Raw Normal View History

; Make sure this testcase codegens to the ctpop instruction
; XFAIL: *
; RUN: llvm-as < %s | llc -march=alpha -enable-alpha-CT | grep 'ctpop'
declare long %llvm.ctpop(long)
implementation ; Functions:
long %bar(long %x) {
entry:
%tmp.1 = call long %llvm.ctpop( long %x )
ret long %tmp.1
}