llvm-project/llvm/test/CodeGen/X86/pop-stack-cleanup-msvc.ll
Nikita Popov 2f448bf509 [X86] Migrate tests to use opaque pointers (NFC)
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).
2022-06-22 14:38:25 +02:00

27 lines
601 B
LLVM

; RUN: llc < %s | FileCheck %s
target triple = "i686--windows-msvc"
declare { ptr, i32 } @param2_ret2(i32, i32)
declare i32 @__CxxFrameHandler3(...)
define void @test_reserved_regs() minsize optsize personality ptr @__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, ptr %s
%0 = invoke { ptr, 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
}