mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-20 11:29:24 +00:00
9 lines
185 B
LLVM
9 lines
185 B
LLVM
|
; RUN: llvm-as < %s | llc -march=ppc32 | not grep srawi &&
|
||
|
; RUN: llvm-as < %s | llc -march=ppc32 | grep blr
|
||
|
|
||
|
int %test(int %X) {
|
||
|
%Y = and int %X, 15
|
||
|
%Z = div int %Y, 4
|
||
|
ret int %Z
|
||
|
}
|