mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-23 21:13:02 +02:00
3173845201
I'm really not sure why we were in the first place, it's the linker's job to convert between BL/BLX as necessary. Even worse, using BLX left Thumb calls that could be locally resolved completely unencodable since all offsets to BLX are multiples of 4. rdar://26182344 llvm-svn: 269101
22 lines
478 B
LLVM
22 lines
478 B
LLVM
; RUN: llc < %s -mtriple=armv7-apple-ios | FileCheck %s
|
|
; RUN: llc < %s -mtriple=thumbv7-apple-ios | FileCheck %s
|
|
; rdar://8690640
|
|
|
|
define i32* @t(i32* %x) nounwind {
|
|
entry:
|
|
; CHECK-LABEL: t:
|
|
; CHECK: push
|
|
; CHECK: mov r7, sp
|
|
; CHECK: bl _foo
|
|
; CHECK: bl _foo
|
|
; CHECK: bl _foo
|
|
; CHECK: pop {r7, pc}
|
|
|
|
%0 = tail call i32* @foo(i32* %x) nounwind
|
|
%1 = tail call i32* @foo(i32* %0) nounwind
|
|
%2 = tail call i32* @foo(i32* %1) nounwind
|
|
ret i32* %2
|
|
}
|
|
|
|
declare i32* @foo(i32*)
|