[llvm] Parse CFI instructions to create SFrame FREs (PR #155496)
Pavel Labath via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 28 10:16:47 PDT 2025
================
@@ -0,0 +1,35 @@
+// TODO: Add other architectures as they gain sframe support
+// REQUIRES: x86-registered-target
+// RUN: llvm-mc --assemble --filetype=obj --gsframe -triple x86_64 %s -o %t.o 2>&1 | FileCheck %s
+// RUN: llvm-readelf --sframe %t.o | FileCheck --check-prefix=CHECK-NOFDES %s
+
+
+ .cfi_sections .sframe
+f1:
+ .cfi_startproc simple
+ nop
+ .cfi_def_cfa_offset 16 // No base register yet
+ nop
+ .cfi_adjust_cfa_offset 16 // No base register yet
+ nop
+ .cfi_return_column 0
+ nop
+ .cfi_endproc
+
+f2:
+ .cfi_startproc
+ nop
+ .cfi_def_cfa 0, 4
+ nop
+
+ .cfi_endproc
----------------
labath wrote:
There's still something wrong with the indentation on this line (.cfi_endproc), at least when I view it in github UI. (I would expect it to start at the same column as the other .cfi directives.
https://github.com/llvm/llvm-project/pull/155496
More information about the llvm-commits
mailing list