2010-11-15 21:11:06 +00:00
|
|
|
; RUN: llc < %s -O0 -fast-isel-abort -mtriple=armv7-apple-darwin
|
|
|
|
; RUN: llc < %s -O0 -fast-isel-abort -mtriple=thumbv7-apple-darwin
|
2010-07-21 22:26:11 +00:00
|
|
|
|
|
|
|
; Very basic fast-isel functionality.
|
|
|
|
|
2010-09-08 19:32:34 +00:00
|
|
|
define i32 @add(i32 %a, i32 %b) nounwind {
|
2010-07-21 22:26:11 +00:00
|
|
|
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
|
2010-11-15 21:11:06 +00:00
|
|
|
}
|