[clang] [llvm] [SystemZ] Add support for __builtin_setjmp and __builtin_longjmp (PR #116642)
Ulrich Weigand via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 28 04:58:29 PST 2024
================
@@ -0,0 +1,24 @@
+;Test longjmp load from jmp_buf.
+; Frame pointer from Slot 1.
+; Jump address from Slot 2.
+; Stack Pointer from Slot 4.
+; Literal Pool Pointer from Slot 5.
+
+; RUN: llc < %s -mtriple=s390x-linux-gnu -O2 | FileCheck %s
+
+ at buf = dso_local global [20 x ptr] zeroinitializer, align 8
+
+; Function Attrs: noreturn nounwind
+define dso_local void @foo() local_unnamed_addr #0 {
----------------
uweigand wrote:
We shouldn't need most of those annotations here. We do not need the Function Attrs comment, nor the `#0` attribute reference (which doesn't even exist in this file!). We also do not need the `dso_local` or `local_unnamed_addr` markers.
https://github.com/llvm/llvm-project/pull/116642
More information about the cfe-commits
mailing list