
Test updates were performed using: https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 These are only the test updates where the test passed without further modification (which is almost all of them, as the backend is largely pointer-type agnostic).
14 lines
441 B
LLVM
14 lines
441 B
LLVM
; RUN: llc < %s -fast-isel -tailcallopt -mtriple=i686-- | FileCheck %s
|
|
; CHECK-NOT: add
|
|
; PR4154
|
|
|
|
; On x86, -tailcallopt changes the ABI so the caller shouldn't readjust
|
|
; the stack pointer after the call in this code.
|
|
|
|
define i32 @stub(ptr %t0) nounwind {
|
|
entry:
|
|
%t1 = load i32, ptr inttoptr (i32 139708680 to ptr) ; <i32> [#uses=1]
|
|
%t3 = call fastcc i32 %t0(i32 %t1) ; <i32> [#uses=1]
|
|
ret i32 %t3
|
|
}
|