summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/fast-isel.ll
blob: dd806ec6f1aee1f4c9889e6fff6ef8fda236e117 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; RUN: llc < %s -O0 -fast-isel-abort -mtriple=armv7-apple-darwin
; RUN: llc < %s -O0 -fast-isel-abort -mtriple=thumbv7-apple-darwin

; Very basic fast-isel functionality.

define i32 @add(i32 %a, i32 %b) nounwind {
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
}