diff options
| author | Davide Italiano <davide@freebsd.org> | 2017-07-26 20:40:33 +0000 |
|---|---|---|
| committer | Davide Italiano <davide@freebsd.org> | 2017-07-26 20:40:33 +0000 |
| commit | 853ce87a4d11a4dd60953c7851d3b3a667cf6a82 (patch) | |
| tree | 18588c031bd0d8017be4aa61f9bb4aa3b7864a2b | |
| parent | f539bd84b6a32d919f4ed9814be53bb4137e93c4 (diff) | |
| download | bcm5719-llvm-853ce87a4d11a4dd60953c7851d3b3a667cf6a82.tar.gz bcm5719-llvm-853ce87a4d11a4dd60953c7851d3b3a667cf6a82.zip | |
[gold] Relax tests to account for difference in layout across versions.
llvm-svn: 309174
| -rw-r--r-- | llvm/test/tools/gold/X86/multiple-data.s | 14 | ||||
| -rw-r--r-- | llvm/test/tools/gold/X86/multiple-sections.ll | 13 |
2 files changed, 6 insertions, 21 deletions
diff --git a/llvm/test/tools/gold/X86/multiple-data.s b/llvm/test/tools/gold/X86/multiple-data.s index 991554b4f0d..e46d964c289 100644 --- a/llvm/test/tools/gold/X86/multiple-data.s +++ b/llvm/test/tools/gold/X86/multiple-data.s @@ -9,17 +9,9 @@ # RUN: --section-ordering-file=%t_order_lto.txt # RUN: llvm-readobj -elf-output-style=GNU -t %t.exe | FileCheck %s -# CHECK: Symbol table '.symtab' contains 9 entries: -# CHECK-NEXT: Num: Value Size Type Bind Vis Ndx Name -# CHECK-NEXT: 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND -# CHECK-NEXT: 1: 0000000000000000 0 FILE LOCAL DEFAULT ABS ld-temp.o -# CHECK-NEXT: 2: 0000000000401104 0 NOTYPE GLOBAL DEFAULT ABS _end -# CHECK-NEXT: 3: 0000000000401104 0 NOTYPE GLOBAL DEFAULT ABS __bss_start -# CHECK-NEXT: 4: 0000000000401104 0 NOTYPE GLOBAL DEFAULT ABS _edata -# CHECK-NEXT: 5: 00000000004000e8 0 NOTYPE GLOBAL DEFAULT 1 _start -# CHECK-NEXT: 6: 00000000004010fc 4 OBJECT GLOBAL DEFAULT 2 dipsy -# CHECK-NEXT: 7: 00000000004010f8 4 OBJECT GLOBAL DEFAULT 2 tin -# CHECK-NEXT: 8: 0000000000401100 4 OBJECT GLOBAL DEFAULT 2 pat +# CHECK: 00000000004010fc 4 OBJECT GLOBAL DEFAULT 2 dipsy +# CHECK: 00000000004010f8 4 OBJECT GLOBAL DEFAULT 2 tin +# CHECK: 0000000000401100 4 OBJECT GLOBAL DEFAULT 2 pat .globl _start _start: diff --git a/llvm/test/tools/gold/X86/multiple-sections.ll b/llvm/test/tools/gold/X86/multiple-sections.ll index 899de0cb810..fbc1c7e93dc 100644 --- a/llvm/test/tools/gold/X86/multiple-sections.ll +++ b/llvm/test/tools/gold/X86/multiple-sections.ll @@ -9,16 +9,9 @@ ; Check that the order of the sections is tin -> _start -> pat. -; CHECK: Symbol table '.symtab' contains 8 entries: -; CHECK-NEXT: Num: Value Size Type Bind Vis Ndx Name -; CHECK-NEXT: 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND -; CHECK-NEXT: 1: 0000000000000000 0 FILE LOCAL DEFAULT ABS ld-temp.o -; CHECK-NEXT: 2: 00000000004000d0 1 FUNC LOCAL DEFAULT 1 pat -; CHECK-NEXT: 3: 00000000004000b0 1 FUNC LOCAL DEFAULT 1 tin -; CHECK-NEXT: 4: 0000000000000000 0 NOTYPE GLOBAL DEFAULT ABS _end -; CHECK-NEXT: 5: 0000000000000000 0 NOTYPE GLOBAL DEFAULT ABS __bss_start -; CHECK-NEXT: 6: 0000000000000000 0 NOTYPE GLOBAL DEFAULT ABS _edata -; CHECK-NEXT: 7: 00000000004000c0 15 FUNC GLOBAL DEFAULT 1 _start +; CHECK: 00000000004000d0 1 FUNC LOCAL DEFAULT 1 pat +; CHECK: 00000000004000b0 1 FUNC LOCAL DEFAULT 1 tin +; CHECK: 00000000004000c0 15 FUNC GLOBAL DEFAULT 1 _start target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" |

