[llvm-branch-commits] [lld] ELF: CFI jump table relaxation. (PR #147424)
Fangrui Song via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue May 26 17:07:04 PDT 2026
================
@@ -0,0 +1,286 @@
+// REQUIRES: x86
+// RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
+// RUN: ld.lld --branch-to-branch %t.o -shared -o %t
+// RUN: llvm-objdump -d --show-all-symbols %t | FileCheck %s
+// RUN: ld.lld -O2 %t.o -shared -o %t
+// RUN: llvm-objdump -d --show-all-symbols %t | FileCheck %s
+// RUN: ld.lld %t.o -shared -o %t
+// RUN: llvm-objdump -d --show-all-symbols %t | FileCheck --check-prefix=O0 %s
+
+// Mostly positive cases, except for f2.
----------------
MaskRay wrote:
Nit: In newer tests we prefer `# ` for directives/check-prefixes and `## ` for prose comments.
https://github.com/llvm/llvm-project/pull/147424
More information about the llvm-branch-commits
mailing list