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