blob: c691cbefdb4deb52a4be15d8aada56c60c16deba [file] [log] [blame]
Eric Christopherab695882010-07-21 22:26:11 +00001; RUN: llc < %s -fast-isel -fast-isel-abort -march=arm
2
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}