llvm-6502/test/CodeGen/ARM/long_shift.ll
Evan Cheng 02b985c50f ARM test cases contributed by Apple.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33354 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-19 09:20:23 +00:00

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
}