[llvm] c586b81 - [X86][Win64] Precommit test for D143812
Markus Böck via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 11 06:16:43 PST 2023
Author: Markus Böck
Date: 2023-02-11T15:15:47+01:00
New Revision: c586b81347cb15852feeb560dec5395d4ac59cfd
URL: https://github.com/llvm/llvm-project/commit/c586b81347cb15852feeb560dec5395d4ac59cfd
DIFF: https://github.com/llvm/llvm-project/commit/c586b81347cb15852feeb560dec5395d4ac59cfd.diff
LOG: [X86][Win64] Precommit test for D143812
Added:
llvm/test/CodeGen/X86/win64-seh-epilogue-statepoint.ll
Modified:
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/X86/win64-seh-epilogue-statepoint.ll b/llvm/test/CodeGen/X86/win64-seh-epilogue-statepoint.ll
new file mode 100644
index 000000000000..a524bfcb5206
--- /dev/null
+++ b/llvm/test/CodeGen/X86/win64-seh-epilogue-statepoint.ll
@@ -0,0 +1,25 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc -mtriple=x86_64-windows-gnu %s -o - | FileCheck %s
+
+define i32 @foobar() gc "statepoint-example" personality ptr @__gxx_personality_seh0 {
+; CHECK-LABEL: foobar:
+; CHECK: # %bb.0:
+; CHECK-NEXT: subq $40, %rsp
+; CHECK-NEXT: .seh_stackalloc 40
+; CHECK-NEXT: .seh_endprologue
+; CHECK-NEXT: callq bar
+; CHECK-NEXT: .Ltmp0:
+; CHECK-NEXT: addq $40, %rsp
+; CHECK-NEXT: retq
+; CHECK-NEXT: .seh_endproc
+ %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)
+ %res = call i32 @llvm.experimental.gc.result.i32(token %statepoint_token)
+ ret i32 %res
+}
+
+declare i32 @bar()
+
+declare dso_local i32 @__gxx_personality_seh0(...)
+
+declare token @llvm.experimental.gc.statepoint.p0(i64 immarg, i32 immarg, ptr, i32 immarg, i32 immarg, ...)
+declare i32 @llvm.experimental.gc.result.i32(token)
More information about the llvm-commits
mailing list