[lld] r176280 - [ELF][tests] changes for test cases

Shankar Easwaran shankare at codeaurora.org
Thu Feb 28 10:38:20 PST 2013


Author: shankare
Date: Thu Feb 28 12:38:20 2013
New Revision: 176280

URL: http://llvm.org/viewvc/llvm-project?rev=176280&view=rev
Log:
[ELF][tests] changes for test cases

Modified:
    lld/trunk/test/elf/Hexagon/sda-base.test
    lld/trunk/test/elf/dynamic-segorder.test
    lld/trunk/test/elf/entry.objtxt
    lld/trunk/test/elf/hexagon-quickdata-sort.test
    lld/trunk/test/elf/hexagon-quickdata-sortcommon.test
    lld/trunk/test/elf/ifunc.test
    lld/trunk/test/elf/mergeatoms.objtxt
    lld/trunk/test/elf/phdr.objtxt
    lld/trunk/test/elf/rodata.objtxt
    lld/trunk/test/elf/symbols.objtxt

Modified: lld/trunk/test/elf/Hexagon/sda-base.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/Hexagon/sda-base.test?rev=176280&r1=176279&r2=176280&view=diff
==============================================================================
--- lld/trunk/test/elf/Hexagon/sda-base.test (original)
+++ lld/trunk/test/elf/Hexagon/sda-base.test Thu Feb 28 12:38:20 2013
@@ -1,4 +1,4 @@
 RUN: lld-core -arch hexagon -reader ELF %p/Inputs/sda-base.o -writer ELF -o %t1
 RUN: llvm-nm -n %t1 | FileCheck %s -check-prefix=sdabase
 
-sdabase: 00002000 A _SDA_BASE_
+sdabase: 00001000 A _SDA_BASE_

Modified: lld/trunk/test/elf/dynamic-segorder.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/dynamic-segorder.test?rev=176280&r1=176279&r2=176280&view=diff
==============================================================================
--- lld/trunk/test/elf/dynamic-segorder.test (original)
+++ lld/trunk/test/elf/dynamic-segorder.test Thu Feb 28 12:38:20 2013
@@ -10,7 +10,7 @@ CHECK: flags r--
 CHECK: LOAD
 CHECK: flags r-x
 CHECK: LOAD
-CHECK: flags r--
+CHECK: flags rw-
 CHECK: LOAD
 CHECK: flags rw-
 CHECK: DYNAMIC

Modified: lld/trunk/test/elf/entry.objtxt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/entry.objtxt?rev=176280&r1=176279&r2=176280&view=diff
==============================================================================
--- lld/trunk/test/elf/entry.objtxt (original)
+++ lld/trunk/test/elf/entry.objtxt Thu Feb 28 12:38:20 2013
@@ -11,9 +11,9 @@
 # RUN: lld-core -reader YAML %s -writer ELF --entry=_entrypoint -o %t1
 # RUN: llvm-nm -n %t1 | FileCheck %s
 # 
-# CHECK:  000000a0 T main
-# CHECK:  00002000 A _end
-# CHECK:  00002000 A end
+# CHECK:  00000080 T main
+# CHECK:  00001000 A _end
+# CHECK:  00001000 A end
 # CHECK:           w _entrypoint
 
 defined-atoms:   

Modified: lld/trunk/test/elf/hexagon-quickdata-sort.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/hexagon-quickdata-sort.test?rev=176280&r1=176279&r2=176280&view=diff
==============================================================================
--- lld/trunk/test/elf/hexagon-quickdata-sort.test (original)
+++ lld/trunk/test/elf/hexagon-quickdata-sort.test Thu Feb 28 12:38:20 2013
@@ -1,12 +1,12 @@
 RUN: lld-core -arch hexagon -reader ELF %p/Inputs/quickdata-sort-test.o.elf-hexagon -writer ELF -o %t1
 RUN: llvm-nm -n %t1 | FileCheck %s -check-prefix=quickdataSort 
 
-quickdataSort: 00002000 D A1
-quickdataSort: 00002001 D AA1
-quickdataSort: 00002002 D B1
-quickdataSort: 00002004 D BB1
-quickdataSort: 00002008 D C1
-quickdataSort: 0000200c D CC1
-quickdataSort: 00002010 D D1
-quickdataSort: 00002018 D DD1
+quickdataSort: 00001000 D A1
+quickdataSort: 00001001 D AA1
+quickdataSort: 00001002 D B1
+quickdataSort: 00001004 D BB1
+quickdataSort: 00001008 D C1
+quickdataSort: 0000100c D CC1
+quickdataSort: 00001010 D D1
+quickdataSort: 00001018 D DD1
 

Modified: lld/trunk/test/elf/hexagon-quickdata-sortcommon.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/hexagon-quickdata-sortcommon.test?rev=176280&r1=176279&r2=176280&view=diff
==============================================================================
--- lld/trunk/test/elf/hexagon-quickdata-sortcommon.test (original)
+++ lld/trunk/test/elf/hexagon-quickdata-sortcommon.test Thu Feb 28 12:38:20 2013
@@ -1,16 +1,16 @@
 RUN: lld-core -arch hexagon -reader ELF %p/Inputs/quickdata-sortcommon-test.o.elf-hexagon -writer ELF -o %t1
 RUN: llvm-nm -n %t1 | FileCheck %s -check-prefix=quickdataSortCommon
 
-quickdataSortCommon: 00002000 D A1
-quickdataSortCommon: 00002001 D AA1
-quickdataSortCommon: 00002002 D AAA1
-quickdataSortCommon: 00002004 D B1
-quickdataSortCommon: 00002006 D BB1
-quickdataSortCommon: 00002008 D BBB1
-quickdataSortCommon: 0000200c D C1
-quickdataSortCommon: 00002010 D CC1
-quickdataSortCommon: 00002014 D CCC1
-quickdataSortCommon: 00002018 D D1
-quickdataSortCommon: 00002020 D DD1
-quickdataSortCommon: 00002028 D DDD1
+quickdataSortCommon: 00001000 D A1
+quickdataSortCommon: 00001001 D AA1
+quickdataSortCommon: 00001002 D AAA1
+quickdataSortCommon: 00001004 D B1
+quickdataSortCommon: 00001006 D BB1
+quickdataSortCommon: 00001008 D BBB1
+quickdataSortCommon: 0000100c D C1
+quickdataSortCommon: 00001010 D CC1
+quickdataSortCommon: 00001014 D CCC1
+quickdataSortCommon: 00001018 D D1
+quickdataSortCommon: 00001020 D DD1
+quickdataSortCommon: 00001028 D DDD1
 

Modified: lld/trunk/test/elf/ifunc.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/ifunc.test?rev=176280&r1=176279&r2=176280&view=diff
==============================================================================
--- lld/trunk/test/elf/ifunc.test (original)
+++ lld/trunk/test/elf/ifunc.test Thu Feb 28 12:38:20 2013
@@ -38,6 +38,6 @@ PLT: kind: R_X86_64_PC32
 
 // This is a horribly brittle test. We need a way to do arithmetic on captured
 // variables.
-BIN: 40012c: ff 25 ce 1e 00 00 jmpq *7886(%rip)
+BIN: 4000ec: ff 25 0e 0f 00 00 jmpq *3854(%rip)
 BIN: .got.plt:
-BIN-NEXT: 402000 00000000 00000000
+BIN-NEXT: 401000 00000000 00000000

Modified: lld/trunk/test/elf/mergeatoms.objtxt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/mergeatoms.objtxt?rev=176280&r1=176279&r2=176280&view=diff
==============================================================================
--- lld/trunk/test/elf/mergeatoms.objtxt (original)
+++ lld/trunk/test/elf/mergeatoms.objtxt Thu Feb 28 12:38:20 2013
@@ -2,4 +2,4 @@ RUN: lld-core -merge-strings=true -reade
 RUN: -o %t1 %p/Inputs/foo.o.x86-64 %p/Inputs/bar.o.x86-64
 RUN: llvm-objdump -s %t1 |  FileCheck -check-prefix=mergeAtoms %s
 
-mergeAtoms:  1000 62617200 666f6f00                    bar.foo.
+mergeAtoms:  0074 62617200 666f6f00                    bar.foo.

Modified: lld/trunk/test/elf/phdr.objtxt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/phdr.objtxt?rev=176280&r1=176279&r2=176280&view=diff
==============================================================================
--- lld/trunk/test/elf/phdr.objtxt (original)
+++ lld/trunk/test/elf/phdr.objtxt Thu Feb 28 12:38:20 2013
@@ -5,37 +5,26 @@ RUN: lld -core -target x86_64-linux -out
 RUN:   -output-type=static && llvm-objdump -p %t1 \
 RUN: | FileCheck %s -check-prefix=X86_64
 
-
 ED:  (('p_type', 0x00000001)
 ED:   ('p_flags', 0x00000005)
 ED:   ('p_offset', 0x00000000)
 ED:   ('p_vaddr', 0x00000000)
 ED:   ('p_paddr', 0x00000000)
-ED:   ('p_filesz', 0x000000d9)
-ED:   ('p_memsz', 0x000000d9)
+ED:   ('p_filesz', 0x00000144)
+ED:   ('p_memsz', 0x00000144)
 ED:   ('p_align', 0x00001000)
 ED:  ),
 ED:  # Program Header 1
 ED:  (('p_type', 0x00000001)
-ED:   ('p_flags', 0x00000004)
+ED:   ('p_flags', 0x00000006)
 ED:   ('p_offset', 0x00001000)
 ED:   ('p_vaddr', 0x00001000)
 ED:   ('p_paddr', 0x00001000)
-ED:   ('p_filesz', 0x0000008c)
-ED:   ('p_memsz', 0x0000008c)
-ED:   ('p_align', 0x00001000)
-ED:  ),
-ED:  # Program Header 2
-ED:  (('p_type', 0x00000001)
-ED:   ('p_flags', 0x00000006)
-ED:   ('p_offset', 0x00002000)
-ED:   ('p_vaddr', 0x00002000)
-ED:   ('p_paddr', 0x00002000)
 ED:   ('p_filesz', 0x00000104)
 ED:   ('p_memsz', 0x00000004)
 ED:   ('p_align', 0x00001000)
 ED:  ),
-ED:  # Program Header 3
+ED:  # Program Header 2
 ED:  (('p_type', 0x00000001)
 ED:   ('p_flags', 0x00000006)
 ED:   ('p_offset', 0x00004000)

Modified: lld/trunk/test/elf/rodata.objtxt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/rodata.objtxt?rev=176280&r1=176279&r2=176280&view=diff
==============================================================================
--- lld/trunk/test/elf/rodata.objtxt (original)
+++ lld/trunk/test/elf/rodata.objtxt Thu Feb 28 12:38:20 2013
@@ -4,6 +4,6 @@ RUN: lld-core -arch hexagon -reader ELF
 RUN:   %p/Inputs/rodata-test.hexagon
 RUN: llvm-objdump -section-headers %t2 |  FileCheck -check-prefix=hexagon %s
 
-i386: 1 .rodata       00000004 0000000000001000 DATA
+i386: 1 .rodata       00000004 0000000000000074 DATA
 
-hexagon: 1 .rodata       00000004 0000000000001000 DATA
+hexagon: 1 .rodata       00000004 0000000000000074 DATA

Modified: lld/trunk/test/elf/symbols.objtxt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/symbols.objtxt?rev=176280&r1=176279&r2=176280&view=diff
==============================================================================
--- lld/trunk/test/elf/symbols.objtxt (original)
+++ lld/trunk/test/elf/symbols.objtxt Thu Feb 28 12:38:20 2013
@@ -18,10 +18,10 @@ RUN: lld-core -reader ELF %p/Inputs/writ
 RUN: llvm-nm -n %t1 | FileCheck -check-prefix CHECKSYMS %s
 
 CHECKSYMS:  00000000 a 1.c
-CHECKSYMS:  00000094 T main
-CHECKSYMS:  00002000 A __bss_start
-CHECKSYMS:  00002000 B a
-CHECKSYMS:  00002004 A __bss_end
-CHECKSYMS:  00002004 A _end
-CHECKSYMS:  00002004 A end
+CHECKSYMS:  00000074 T main
+CHECKSYMS:  00001000 A __bss_start
+CHECKSYMS:  00001000 B a
+CHECKSYMS:  00001004 A __bss_end
+CHECKSYMS:  00001004 A _end
+CHECKSYMS:  00001004 A end
 CHECKSYMS:           w _start





More information about the llvm-commits mailing list