blob: dd806ec6f1aee1f4c9889e6fff6ef8fda236e117 [file] [log] [blame]
Eric Christopher76dda7e2010-11-15 21:11:06 +00001; RUN: llc < %s -O0 -fast-isel-abort -mtriple=armv7-apple-darwin
2; RUN: llc < %s -O0 -fast-isel-abort -mtriple=thumbv7-apple-darwin
Eric Christopherab695882010-07-21 22:26:11 +00003
4; Very basic fast-isel functionality.
5
Eric Christopherf2605412010-09-08 19:32:34 +00006define i32 @add(i32 %a, i32 %b) nounwind {
Eric Christopherab695882010-07-21 22:26:11 +00007entry:
8 %a.addr = alloca i32, align 4
9 %b.addr = alloca i32, align 4
10 store i32 %a, i32* %a.addr
11 store i32 %b, i32* %b.addr
12 %tmp = load i32* %a.addr
13 %tmp1 = load i32* %b.addr
14 %add = add nsw i32 %tmp, %tmp1
15 ret i32 %add
Eric Christopher76dda7e2010-11-15 21:11:06 +000016}