[PATCH] D110090: [ELF][test] Restore important part of ICF alignment test

Andrew Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 21 02:25:31 PDT 2021


andrewng updated this revision to Diff 373813.
andrewng added a comment.

Added comment to test as suggest off-line by @jhenderson.


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.373813.patch
Type: text/x-patch
Size: 891 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210921/157d40ad/attachment.bin>


More information about the llvm-commits mailing list