21 lines · plain
1; RUN: llc -mtriple=thumbv7-apple-ios -filetype=obj %s -o %t2; RUN: llvm-objdump --macho -d %t | FileCheck %s3 4; This function just messes up the offsets enough to make the libcall in5; test_local_call unencodable with a blx.6define void @thing() {7 ret void8}9 10define i64 @__udivdi3(i64 %a, i64 %b) {11 ret i64 %b12}13 14define i64 @test_local_call(i64 %a, i64 %b) {15; CHECK-LABEL: test_local_call:16; CHECK: bl ___udivdi317 18%res = udiv i64 %a, %b19 ret i64 %res20}21