[llvm] r309174 - [gold] Relax tests to account for difference in layout across versions.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 26 13:40:33 PDT 2017


Author: davide
Date: Wed Jul 26 13:40:33 2017
New Revision: 309174

URL: http://llvm.org/viewvc/llvm-project?rev=309174&view=rev
Log:
[gold] Relax tests to account for difference in layout across versions.

Modified:
    llvm/trunk/test/tools/gold/X86/multiple-data.s
    llvm/trunk/test/tools/gold/X86/multiple-sections.ll

Modified: llvm/trunk/test/tools/gold/X86/multiple-data.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/multiple-data.s?rev=309174&r1=309173&r2=309174&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/multiple-data.s (original)
+++ llvm/trunk/test/tools/gold/X86/multiple-data.s Wed Jul 26 13:40:33 2017
@@ -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:

Modified: llvm/trunk/test/tools/gold/X86/multiple-sections.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/multiple-sections.ll?rev=309174&r1=309173&r2=309174&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/multiple-sections.ll (original)
+++ llvm/trunk/test/tools/gold/X86/multiple-sections.ll Wed Jul 26 13:40:33 2017
@@ -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"




More information about the llvm-commits mailing list