1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=x86_64-windows-gnu %s -o - | FileCheck %s
4 define i32 @foobar() gc "statepoint-example" personality ptr @__gxx_personality_seh0 {
7 ; CHECK-NEXT: subq $40, %rsp
8 ; CHECK-NEXT: .seh_stackalloc 40
9 ; CHECK-NEXT: .seh_endprologue
10 ; CHECK-NEXT: callq bar
13 ; CHECK-NEXT: addq $40, %rsp
15 ; CHECK-NEXT: .seh_endproc
16 %statepoint_token = call token (i64, i32, ptr, i32, i32, ...) @llvm.experimental.gc.statepoint.p0(i64 2882400000, i32 0, ptr elementtype(i32 ()) @bar, i32 0, i32 0, i32 0, i32 0)
17 %res = call i32 @llvm.experimental.gc.result.i32(token %statepoint_token)
23 declare dso_local i32 @__gxx_personality_seh0(...)
25 declare token @llvm.experimental.gc.statepoint.p0(i64 immarg, i32 immarg, ptr, i32 immarg, i32 immarg, ...)
26 declare i32 @llvm.experimental.gc.result.i32(token)