1 ; RUN: llc < %s -mtriple=thumbv7-apple-ios -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=static -mattr=+long-calls | FileCheck -check-prefix=CHECK-LONG %s
2 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=static -mattr=+long-calls | FileCheck -check-prefix=CHECK-LONG %s
3 ; RUN: llc < %s -mtriple=thumbv7-apple-ios -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=static | FileCheck -check-prefix=CHECK-NORM %s
4 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=static | FileCheck -check-prefix=CHECK-NORM %s
6 define void @myadd(ptr %sum, ptr %addend) nounwind {
8 %sum.addr = alloca ptr, align 4
9 %addend.addr = alloca ptr, align 4
10 store ptr %sum, ptr %sum.addr, align 4
11 store ptr %addend, ptr %addend.addr, align 4
12 %tmp = load ptr, ptr %sum.addr, align 4
13 %tmp1 = load float, ptr %tmp
14 %tmp2 = load ptr, ptr %addend.addr, align 4
15 %tmp3 = load float, ptr %tmp2
16 %add = fadd float %tmp1, %tmp3
17 %tmp4 = load ptr, ptr %sum.addr, align 4
18 store float %add, ptr %tmp4
22 define i32 @main(i32 %argc, ptr %argv) nounwind {
24 %ztot = alloca float, align 4
25 %z = alloca float, align 4
26 store float 0.000000e+00, ptr %ztot, align 4
27 store float 1.000000e+00, ptr %z, align 4
29 ; CHECK-NORM: bl {{_?}}myadd
30 call void @myadd(ptr %ztot, ptr %z)