blob: c12bbd03e2cdb0a6c235127e79be073dfe0374c9 [file] [log] [blame]
Eric Christopherdc3d8b82010-08-25 07:47:00 +00001; RUN: llc < %s -O0 -arm-fast-isel -fast-isel-abort -mtriple=armv7-apple-darwin
Eric Christopherab695882010-07-21 22:26:11 +00002
3; Very basic fast-isel functionality.
4
5define i32 @add(i32 %a, i32 %b) nounwind ssp {
6entry:
7 %a.addr = alloca i32, align 4
8 %b.addr = alloca i32, align 4
9 store i32 %a, i32* %a.addr
10 store i32 %b, i32* %b.addr
11 %tmp = load i32* %a.addr
12 %tmp1 = load i32* %b.addr
13 %add = add nsw i32 %tmp, %tmp1
14 ret i32 %add
15}