[lld] r300128 - Remove useless 0x prefixes.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 12 16:15:55 PDT 2017
Author: ruiu
Date: Wed Apr 12 18:15:55 2017
New Revision: 300128
URL: http://llvm.org/viewvc/llvm-project?rev=300128&view=rev
Log:
Remove useless 0x prefixes.
Modified:
lld/trunk/test/ELF/linkerscript/memory.s
Modified: lld/trunk/test/ELF/linkerscript/memory.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/memory.s?rev=300128&r1=300127&r2=300128&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/memory.s (original)
+++ lld/trunk/test/ELF/linkerscript/memory.s Wed Apr 12 18:15:55 2017
@@ -17,7 +17,7 @@
## Check RAM and ROM memory regions.
# RUN: echo "MEMORY { \
-# RUN: ram (rwx) : ORIGIN = 0x0, LENGTH = 1024M \
+# RUN: ram (rwx) : ORIGIN = 0, LENGTH = 1024M \
# RUN: rom (rx) : org = 0x80000000, len = 64M \
# RUN: } \
# RUN: SECTIONS { \
@@ -33,7 +33,7 @@
## Check memory region placement by attributes.
# RUN: echo "MEMORY { \
-# RUN: ram (!rx) : ORIGIN = 0x0, LENGTH = 1024M \
+# RUN: ram (!rx) : ORIGIN = 0, LENGTH = 1024M \
# RUN: rom (rx) : o = 0x80000000, l = 64M \
# RUN: } \
# RUN: SECTIONS { \
@@ -62,7 +62,7 @@
## Check duplicate regions.
-# RUN: echo "MEMORY { ram (rwx) : o = 0x8, l = 256K ram (rx) : o = 0x0, l = 256K }" > %t.script
+# RUN: echo "MEMORY { ram (rwx) : o = 8, l = 256K ram (rx) : o = 0, l = 256K }" > %t.script
# RUN: not ld.lld -o %t2 --script %t.script %t 2>&1 \
# RUN: | FileCheck -check-prefix=ERR3 %s
# ERR3: {{.*}}.script:1: region 'ram' already defined
@@ -87,7 +87,7 @@
## Check region overflow.
-# RUN: echo "MEMORY { ram (rwx) : ORIGIN = 0x0, LENGTH = 2K } \
+# RUN: echo "MEMORY { ram (rwx) : ORIGIN = 0, LENGTH = 2K } \
# RUN: SECTIONS { \
# RUN: .text : { *(.text) } > ram \
# RUN: .data : { *(.data) } > ram \
@@ -98,7 +98,7 @@
## Check invalid region attributes.
-# RUN: echo "MEMORY { ram (abc) : ORIGIN = 0x8000, LENGTH = 256K } }" > %t.script
+# RUN: echo "MEMORY { ram (abc) : ORIGIN = 8000, LENGTH = 256K } }" > %t.script
# RUN: not ld.lld -o %t2 --script %t.script %t 2>&1 \
# RUN: | FileCheck -check-prefix=ERR7 %s
# ERR7: {{.*}}.script:1: invalid memory region attribute
More information about the llvm-commits
mailing list