mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-08 03:29:41 +00:00
13 lines
284 B
LLVM
13 lines
284 B
LLVM
|
; Make sure this testcase codegens to the bic instruction
|
||
|
; 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
|
||
|
}
|