mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
30f1f36fe8
Summary: Looking at the callee argument list, as is done now, might not work if the function has been typecasted into one that is expected to return a struct. This change also simplifies the code. The isFP128ABICall() function can be removed as it is no longer needed. The test in fp128.ll has been updated to verify this. Reviewers: jyknight, venkatra Reviewed By: jyknight Subscribers: fedor.sergeev, jrtc27, llvm-commits Differential Revision: https://reviews.llvm.org/D48117 llvm-svn: 340008
18 lines
318 B
LLVM
18 lines
318 B
LLVM
; RUN: llc < %s -march=sparc
|
|
|
|
; CHECK: call func
|
|
; CHECK: st %i0, [%sp+64]
|
|
; CHECK: unimp 8
|
|
|
|
%struct = type { i32, i32 }
|
|
|
|
define void @test() nounwind {
|
|
entry:
|
|
%tmp = alloca %struct, align 4
|
|
call void bitcast (void ()* @func to void (%struct*)*)
|
|
(%struct* nonnull sret %tmp)
|
|
ret void
|
|
}
|
|
|
|
declare void @func()
|