Tim Northover | b5ece52 | 2016-05-10 19:17:47 +0000 | [diff] [blame] | 1 | ; RUN: llc -mtriple=thumbv7-apple-ios -filetype=obj %s -o %t |
| 2 | ; RUN: llvm-objdump -macho -d %t | FileCheck %s |
| 3 | |
| 4 | ; This function just messes up the offsets enough to make the libcall in |
| 5 | ; test_local_call unencodable with a blx. |
| 6 | define void @thing() { |
| 7 | ret void |
| 8 | } |
| 9 | |
| 10 | define i64 @__udivdi3(i64 %a, i64 %b) { |
| 11 | ret i64 %b |
| 12 | } |
| 13 | |
| 14 | define i64 @test_local_call(i64 %a, i64 %b) { |
| 15 | ; CHECK-LABEL: test_local_call: |
| 16 | ; CHECK: bl ___udivdi3 |
| 17 | |
| 18 | %res = udiv i64 %a, %b |
| 19 | ret i64 %res |
Francis Visoiu Mistrih | c71cced | 2017-11-30 16:12:24 +0000 | [diff] [blame] | 20 | } |