Skip to content

Commit 78a16b0

Browse files
committed
Test loongarch-tls-ie.s pass.
1 parent a39c190 commit 78a16b0

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

lld/test/ELF/loongarch-tls-ie.s

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
## LA32 IE -> LE
1313
# RUN: ld.lld %t/32.o -o %t/32
1414
# RUN: llvm-readelf -r %t/32 | FileCheck --check-prefix=NOREL %s
15-
# RUN: llvm-readelf -x .got %t/32 | FileCheck --check-prefix=LE32-GOT %s
15+
# RUN: llvm-readelf -x .got %t/32 2>&1 | FileCheck --check-prefix=LE32-GOT %s
1616
# RUN: llvm-objdump -d --no-show-raw-insn %t/32 | FileCheck --check-prefixes=LE32 %s
1717

1818
## LA64 IE
@@ -23,7 +23,7 @@
2323
## LA64 IE -> LE
2424
# RUN: ld.lld %t/64.o -o %t/64
2525
# RUN: llvm-readelf -r %t/64 | FileCheck --check-prefix=NOREL %s
26-
# RUN: llvm-readelf -x .got %t/64 | FileCheck --check-prefix=LE64-GOT %s
26+
# RUN: llvm-readelf -x .got %t/64 2>&1 | FileCheck --check-prefix=LE64-GOT %s
2727
# RUN: llvm-objdump -d --no-show-raw-insn %t/64 | FileCheck --check-prefixes=LE64 %s
2828

2929
# IE32-REL: FLAGS STATIC_TLS
@@ -62,29 +62,23 @@
6262

6363
# a@tprel = st_value(a) = 0x8
6464
# b@tprel = st_value(a) = 0xc
65-
# LE32-GOT: section '.got':
66-
# LE32-GOT-NEXT: 0x0003012c 08000000 0c000000
67-
# LE64-GOT: section '.got':
68-
# LE64-GOT-NEXT: 0x000301e0 08000000 00000000 0c000000 00000000
65+
# LE32-GOT: could not find section '.got'
66+
# LE64-GOT: could not find section '.got'
6967

7068
## LA32:
71-
## &.got[0] - . = 0x3012c - 0x20114: 0x10 pages, page offset 0x12c
72-
## &.got[1] - . = 0x30130 - 0x20120: 0x10 pages, page offset 0x130
73-
# LE32: 20114: pcalau12i $a4, 16
74-
# LE32-NEXT: ld.w $a4, $a4, 300
69+
# LE32: 200d4: nop
70+
# LE32-NEXT: ori $a4, $zero, 8
7571
# LE32-NEXT: add.w $a4, $a4, $tp
76-
# LE32-NEXT: 20120: pcalau12i $a5, 16
77-
# LE32-NEXT: ld.w $a5, $a5, 304
72+
# LE32-NEXT: 200e0: nop
73+
# LE32-NEXT: ori $a5, $zero, 12
7874
# LE32-NEXT: add.w $a5, $a5, $tp
7975

8076
## LA64:
81-
## &.got[0] - . = 0x301e0 - 0x201c8: 0x10 pages, page offset 0x1e0
82-
## &.got[1] - . = 0x301e8 - 0x201d4: 0x10 pages, page offset 0x1e8
83-
# LE64: 201c8: pcalau12i $a4, 16
84-
# LE64-NEXT: ld.d $a4, $a4, 480
77+
# LE64: 20158: nop
78+
# LE64-NEXT: ori $a4, $zero, 8
8579
# LE64-NEXT: add.d $a4, $a4, $tp
86-
# LE64-NEXT: 201d4: pcalau12i $a5, 16
87-
# LE64-NEXT: ld.d $a5, $a5, 488
80+
# LE64-NEXT: 20164: nop
81+
# LE64-NEXT: ori $a5, $zero, 12
8882
# LE64-NEXT: add.d $a5, $a5, $tp
8983

9084
#--- 32.s

0 commit comments

Comments
 (0)