33 lines · plain
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 %s2; 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 %s3; RUN: llc < %s -mtriple=thumbv7-apple-ios -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=static | FileCheck -check-prefix=CHECK-NORM %s4; RUN: llc < %s -mtriple=armv7-linux-gnueabi -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=static | FileCheck -check-prefix=CHECK-NORM %s5 6define void @myadd(ptr %sum, ptr %addend) nounwind {7entry:8 %sum.addr = alloca ptr, align 49 %addend.addr = alloca ptr, align 410 store ptr %sum, ptr %sum.addr, align 411 store ptr %addend, ptr %addend.addr, align 412 %tmp = load ptr, ptr %sum.addr, align 413 %tmp1 = load float, ptr %tmp14 %tmp2 = load ptr, ptr %addend.addr, align 415 %tmp3 = load float, ptr %tmp216 %add = fadd float %tmp1, %tmp317 %tmp4 = load ptr, ptr %sum.addr, align 418 store float %add, ptr %tmp419 ret void20}21 22define i32 @main(i32 %argc, ptr %argv) nounwind {23entry:24 %ztot = alloca float, align 425 %z = alloca float, align 426 store float 0.000000e+00, ptr %ztot, align 427 store float 1.000000e+00, ptr %z, align 428; CHECK-LONG: blx r29; CHECK-NORM: bl {{_?}}myadd30 call void @myadd(ptr %ztot, ptr %z)31 ret i32 032}33