1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 16:33:37 +01:00
llvm-mirror/test/CodeGen/ARM/fast-isel.ll
Eric Christopher 3d118d5e8a Baby steps towards ARM fast-isel.
llvm-svn: 109047
2010-07-21 22:26:11 +00:00

16 lines
376 B
LLVM

; RUN: llc < %s -fast-isel -fast-isel-abort -march=arm
; Very basic fast-isel functionality.
define i32 @add(i32 %a, i32 %b) nounwind ssp {
entry:
%a.addr = alloca i32, align 4
%b.addr = alloca i32, align 4
store i32 %a, i32* %a.addr
store i32 %b, i32* %b.addr
%tmp = load i32* %a.addr
%tmp1 = load i32* %b.addr
%add = add nsw i32 %tmp, %tmp1
ret i32 %add
}