Skip to content

Commit a41f076

Browse files
committed
[test] Fix tools/gold/X86/weak.ll after D94202
The order regressed after D94202: after `a b`, when adding `a c`, we may reorder `a` to the right of `b`, causing the final order to be `b a c`.
1 parent 262a72f commit a41f076

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

llvm/test/tools/gold/X86/Inputs/weak.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
target triple = "x86_64-unknown-linux-gnu"
12
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
23

34
@a = weak global i32 41

llvm/test/tools/gold/X86/weak.ll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
; RUN: -shared %t.o %t2.o -o %t3.o
77
; RUN: llvm-dis %t3.o -o - | FileCheck %s
88

9+
target triple = "x86_64-unknown-linux-gnu"
910
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
1011

1112
@a = weak global i32 42
1213
@b = global i32* @a
1314

1415
; Test that @b and @c end up pointing to the same variable.
1516

16-
; CHECK: @a = weak global i32 42
1717
; CHECK: @b = global i32* @a{{$}}
18+
; CHECK: @a = weak global i32 42
1819
; CHECK: @c = global i32* @a{{$}}

0 commit comments

Comments
 (0)