mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-04 10:04:33 +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
|
|
}
|
|
|