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

13 lines
289 B
LLVM
Raw Normal View History

; Make sure this testcase codegens to the ctpop instruction
; RUN: llvm-as < %s | llc -march=alpha -enable-alpha-CT | grep -i '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
}