[PATCH] D110090: [ELF][test] Restore important part of ICF alignment test
Andrew Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 22 06:16:28 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG05b130342143: [ELF][test] Restore important part of ICF alignment test (authored by andrewng).
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110090/new/
https://reviews.llvm.org/D110090
Files:
lld/test/ELF/icf7.s
Index: lld/test/ELF/icf7.s
===================================================================
--- lld/test/ELF/icf7.s
+++ lld/test/ELF/icf7.s
@@ -1,14 +1,15 @@
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
-# RUN: ld.lld %t -o %t2 --icf=all --print-icf-sections | FileCheck %s
+# RUN: ld.lld %t -o %t2 --Ttext=220000 --icf=all --print-icf-sections | FileCheck %s
# RUN: llvm-objdump -t %t2 | FileCheck --check-prefix=ALIGN %s
# CHECK: selected section {{.*}}:(.text.f1)
# CHECK: removing identical section {{.*}}:(.text.f2)
-# ALIGN: .text 0000000000000000 _start
-# ALIGN: .text 0000000000000000 f1
+## Check that the selected section has the higher alignment of the two identical sections.
+# ALIGN: 0000000000220000 g .text 0000000000000000 _start
+# ALIGN: 0000000000220100 g .text 0000000000000000 f1
.globl _start, f1, f2
_start:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110090.374202.patch
Type: text/x-patch
Size: 891 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210922/0b6eaf8f/attachment.bin>
More information about the llvm-commits
mailing list