1 ; RUN: llc < %s -O0 -arm-fast-isel -fast-isel-abort -mtriple=armv7-apple-darwin
2 ; RUN: llc < %s -O0 -arm-fast-isel -fast-isel-abort -mtriple=thumbv7-apple-darwin
4 ; Very basic fast-isel functionality.
6 define i32 @add(i32 %a, i32 %b) nounwind {
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
18 define float @fp_ops(float %a, float %b) nounwind {
20 %a.addr = alloca float, align 4
21 %b.addr = alloca float, align 4
22 store float %a, float* %a.addr
23 store float %b, float* %b.addr
24 %tmp = load float* %a.addr
25 %tmp1 = load float* %b.addr
26 %mul = fmul float %tmp, %tmp1
27 %tmp2 = load float* %b.addr
28 %tmp3 = load float* %a.addr
29 %mul2 = fmul float %tmp2, %tmp3
30 %add = fadd float %mul, %mul2
34 define i32* @foo(i32* %p, i32* %q, i32** %z) nounwind {
49 %t7 = getelementptr i32* %y, i32 1
50 %t8 = getelementptr i32* %t7, i32 %t6