[llvm] [Sframe] Support cfi_escape directives compatibly with gnu-gas (PR #161927)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 14 22:57:18 PDT 2025


================
@@ -0,0 +1,37 @@
+# RUN: llvm-mc --filetype=obj --gsframe -triple x86_64 %s -o %t.o 2>&1 | FileCheck %s
+# RUN: llvm-readelf --sframe %t.o | FileCheck %s --check-prefix=NOFDES
+
+# Tests that .cfi_escape sequences that are unrepresentable in sframe warn
+# and do not produce FDEs.
+
+        .align 1024
----------------
MaskRay wrote:

The file mixes tabs and spaces. Should standardize the style. In newer tests we use `## ` for comments that are not RUN or CHECK.

https://github.com/llvm/llvm-project/pull/161927


More information about the llvm-commits mailing list