mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
13 lines
249 B
LLVM
13 lines
249 B
LLVM
|
; Make sure this testcase does not use ctpop
|
||
|
; RUN: llvm-as < %s | llc -march=ppc32 | grep -i 'cntlzw'
|
||
|
|
||
|
declare int %llvm.cttz(int)
|
||
|
|
||
|
implementation ; Functions:
|
||
|
|
||
|
int %bar(int %x) {
|
||
|
entry:
|
||
|
%tmp.1 = call int %llvm.cttz( int %x )
|
||
|
ret int %tmp.1
|
||
|
}
|