[PATCH] D119456: [Mach-O][NFC] Reorder map file tests
Roger Kim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 10 09:48:51 PST 2022
Roger created this revision.
Roger added a reviewer: int3.
Herald added a project: lld-macho.
Herald added a reviewer: lld-macho.
Roger requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
We are just grouping the files and the tests together.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D119456
Files:
lld/test/MachO/map-file.s
Index: lld/test/MachO/map-file.s
===================================================================
--- lld/test/MachO/map-file.s
+++ lld/test/MachO/map-file.s
@@ -10,17 +10,6 @@
# RUN: FileCheck %s < %t/out
# RUN: FileCheck %s --check-prefix=MAPFILE < %t/test-map.time-trace
-#--- foo.s
-.section __TEXT,obj
-.globl _foo
-_foo:
-
-#--- test.s
-.comm _number, 1
-.globl _main
-_main:
- ret
-
# CHECK: Sections:
# CHECK-NEXT: Idx Name Size VMA Type
# CHECK-NEXT: 0 __text {{[0-9a-f]+}} [[#%x,TEXT:]] TEXT
@@ -52,25 +41,6 @@
# CHECK-NEXT: 0x[[#FOO]] [ 2] _foo
# CHECK-NEXT: 0x[[#NUMBER]] [ 1] _number
-#--- c-string-literal.s
-.section __TEXT,__cstring
-.globl _hello_world, _hello_its_me, _main
-
-_hello_world:
-.asciz "Hello world!\n"
-
-_hello_its_me:
-.asciz "Hello, it's me"
-
-.text
-_main:
- movl $0x2000004, %eax # write() syscall
- mov $1, %rdi # stdout
- leaq _hello_world(%rip), %rsi
- mov $13, %rdx # length of str
- syscall
- ret
-
# RUN: %lld -map %t/c-string-literal-map %t/c-string-literal.o -o %t/c-string-literal-out
# RUN: FileCheck --check-prefix=CSTRING %s < %t/c-string-literal-map
@@ -91,3 +61,34 @@
# DEADCSTRING-DAG: literal string: Hello, it's me
# MAPFILE: "name":"Total Write map file"
+
+#--- foo.s
+.section __TEXT,obj
+.globl _foo
+_foo:
+
+#--- test.s
+.comm _number, 1
+.globl _main
+_main:
+ ret
+
+#--- c-string-literal.s
+.section __TEXT,__cstring
+.globl _hello_world, _hello_its_me, _main
+
+_hello_world:
+.asciz "Hello world!\n"
+
+_hello_its_me:
+.asciz "Hello, it's me"
+
+.text
+_main:
+ movl $0x2000004, %eax # write() syscall
+ mov $1, %rdi # stdout
+ leaq _hello_world(%rip), %rsi
+ mov $13, %rdx # length of str
+ syscall
+ ret
+
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119456.407590.patch
Type: text/x-patch
Size: 1769 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220210/193f5e37/attachment.bin>
More information about the llvm-commits
mailing list