]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/ARM/fast-isel.ll
Vendor import of llvm trunk r126079:
[FreeBSD/FreeBSD.git] / test / CodeGen / ARM / fast-isel.ll
1 ; RUN: llc < %s -O0 -fast-isel-abort -mtriple=armv7-apple-darwin
2 ; RUN: llc < %s -O0 -fast-isel-abort -mtriple=thumbv7-apple-darwin
3
4 ; Very basic fast-isel functionality.
5
6 define i32 @add(i32 %a, i32 %b) nounwind {
7 entry:
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
16 }