mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-20 09:30:43 +00:00
02b985c50f
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33354 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
390 B
LLVM
11 lines
390 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm
|
|
|
|
long %foo0(long %A, ulong %B) {
|
|
%tmp = cast long %A to ulong ; <ulong> [#uses=1]
|
|
%tmp2 = shr ulong %B, ubyte 1 ; <ulong> [#uses=1]
|
|
%tmp3 = sub ulong %tmp, %tmp2 ; <ulong> [#uses=1]
|
|
%tmp3 = cast ulong %tmp3 to long ; <long> [#uses=1]
|
|
ret long %tmp3
|
|
}
|
|
|