llvm-6502/test/CodeGen/X86/2007-05-07-InvokeSRet.ll
Duncan Sands df8b1f0e8e Testcase for PR1398.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36905 91177308-0d34-0410-b5e6-96231b3b80d8
2007-05-07 20:45:20 +00:00

16 lines
367 B
LLVM

; RUN: llvm-as < %s | llc -march=x86 -enable-eh -disable-fp-elim | not grep {addl .8, %esp}
; PR1398
%struct.S = type { i32, i32 }
declare void @invokee(%struct.S* sret )
define void @invoker(%struct.S* %name.0.0) {
entry:
invoke void @invokee( %struct.S* %name.0.0 sret )
to label %return unwind label %return
return: ; preds = %entry, %entry
ret void
}