llvm-project/llvm/test/CodeGen/X86/win64-eh-trailing-statepoint.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

23 lines
864 B
LLVM

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -mtriple=x86_64-windows-gnu %s -o - | FileCheck %s
define void @foo() gc "statepoint-example" personality ptr @__gxx_personality_seh0 {
; CHECK-LABEL: foo:
; CHECK: # %bb.0:
; CHECK-NEXT: subq $40, %rsp
; CHECK-NEXT: .seh_stackalloc 40
; CHECK-NEXT: .seh_endprologue
; CHECK-NEXT: callq raise
; CHECK-NEXT: .Ltmp0:
; CHECK-NEXT: int3
; CHECK-NEXT: .seh_endproc
%statepoint_token = call token (i64, i32, ptr, i32, i32, ...) @llvm.experimental.gc.statepoint.p0(i64 2882400000, i32 0, ptr elementtype(void ()) @raise, i32 0, i32 0, i32 0, i32 0)
unreachable
}
declare void @raise()
declare dso_local i32 @__gxx_personality_seh0(...)
declare token @llvm.experimental.gc.statepoint.p0(i64 immarg, i32 immarg, ptr, i32 immarg, i32 immarg, ...)