linux-packaging-mono/external/llvm/test/CodeGen/X86/pop-stack-cleanup-msvc.ll
Xamarin Public Jenkins (auto-signing) 8e12397d70 Imported Upstream version 5.18.0.205
Former-commit-id: 7f59f7e792705db773f1caecdaa823092f4e2927
2018-11-16 08:20:38 +00:00

27 lines
609 B
LLVM

; RUN: llc < %s | FileCheck %s
target triple = "i686--windows-msvc"
declare { i8*, i32 } @param2_ret2(i32, i32)
declare i32 @__CxxFrameHandler3(...)
define void @test_reserved_regs() minsize optsize personality i32 (...)* @__CxxFrameHandler3 {
; CHECK-LABEL: test_reserved_regs:
; CHECK: calll _param2_ret2
; CHECK-NEXT: popl %ecx
; CHECK-NEXT: popl %edi
start:
%s = alloca i64
store i64 4, i64* %s
%0 = invoke { i8*, i32 } @param2_ret2(i32 0, i32 1)
to label %out unwind label %cleanup
out:
ret void
cleanup:
%cp = cleanuppad within none []
cleanupret from %cp unwind to caller
}