[PATCH] D156293: [lld][ELF][test] Fix excessive output file size in loongarch-add-sub.s

wanglei via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 26 07:17:53 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rGffe2b6f75de5: [lld][ELF][test] Fix excessive output file size in loongarch-add-sub.s (authored by WANG Xuerui <git at xen0n.name>, committed by wangleiat).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156293/new/

https://reviews.llvm.org/D156293

Files:
  lld/test/ELF/loongarch-add-sub.s


Index: lld/test/ELF/loongarch-add-sub.s
===================================================================
--- lld/test/ELF/loongarch-add-sub.s
+++ lld/test/ELF/loongarch-add-sub.s
@@ -2,14 +2,14 @@
 
 # RUN: llvm-mc --filetype=obj --triple=loongarch64-unknown-elf %s -o %t.la64.o
 
-# RUN: ld.lld --section-start=.rodata=0x1234567890 --section-start=.text=0x9876543210 %t.la64.o -o %t.la64
+# RUN: ld.lld --section-start=.text=0x1234567890 --section-start=.rodata=0x9876543210 %t.la64.o -o %t.la64
 # RUN: llvm-readelf -x .rodata %t.la64 | FileCheck --check-prefix=CHECK %s
 # CHECK:      section '.rodata':
-# CHECK-NEXT: 0x1234567890 10325476 98badcfe 80b9fd41 86000000
-# CHECK-NEXT: 0x12345678a0 80b9fd41 80b980
+# CHECK-NEXT: 0x9876543210 10325476 98badcfe 804602be 79ffffff
+# CHECK-NEXT: 0x9876543220 804602be 804680
 
+.text
 .global _start
-
 _start:
 1:
     break 0


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156293.544360.patch
Type: text/x-patch
Size: 879 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230726/7ca96937/attachment.bin>


More information about the llvm-commits mailing list