[llvm] b6d2436 - [gold] Don't hardcode section index in test (#222339)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 9 07:24:03 PDT 2026
Author: Nikita Popov
Date: 2026-09-09T16:23:57+02:00
New Revision: b6d2436c2f9f30f8bc4ea58c13c9214e2f302b0a
URL: https://github.com/llvm/llvm-project/commit/b6d2436c2f9f30f8bc4ea58c13c9214e2f302b0a
DIFF: https://github.com/llvm/llvm-project/commit/b6d2436c2f9f30f8bc4ea58c13c9214e2f302b0a.diff
LOG: [gold] Don't hardcode section index in test (#222339)
This can either be 1 or 2 depending on whether binutils was
compiled with --enable-rosegment=yes. The test does not care
about the index (only the address), so make it a wildcard.
Added:
Modified:
llvm/test/tools/gold/X86/multiple-sections.ll
Removed:
################################################################################
diff --git a/llvm/test/tools/gold/X86/multiple-sections.ll b/llvm/test/tools/gold/X86/multiple-sections.ll
index 7693f825da683..e677057e3acad 100644
--- a/llvm/test/tools/gold/X86/multiple-sections.ll
+++ b/llvm/test/tools/gold/X86/multiple-sections.ll
@@ -9,9 +9,9 @@
; Check that the order of the sections is tin -> _start -> pat.
-; CHECK: [[#%x, ADDR:]] 1 FUNC LOCAL DEFAULT 1 pat
-; CHECK: [[#%x, ADDR - 31]] 1 FUNC LOCAL DEFAULT 1 tin
-; CHECK: [[#%x, ADDR - 15]] 15 FUNC GLOBAL DEFAULT 1 _start
+; CHECK: [[#%x, ADDR:]] 1 FUNC LOCAL DEFAULT [[#IDX:]] pat
+; CHECK: [[#%x, ADDR - 31]] 1 FUNC LOCAL DEFAULT [[#IDX]] tin
+; CHECK: [[#%x, ADDR - 15]] 15 FUNC GLOBAL DEFAULT [[#IDX]] _start
;--- order
.text : {
More information about the llvm-commits
mailing list