mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
6cd76408bf
This patch updates tests using llvm-readobj and llvm-readelf, because soon reading from stdin will be achievable only via a '-' as described here: https://bugs.llvm.org/show_bug.cgi?id=46400. Patch with changes to llvm-readobj behavior is here: https://reviews.llvm.org/D83704 Differential Revision: https://reviews.llvm.org/D83912 Reviewed by: jhenderson, MaskRay, grimar
28 lines
944 B
ArmAsm
28 lines
944 B
ArmAsm
# RUN: llvm-mc -arch=mips < %s -position-independent -filetype=obj \
|
|
# RUN: | llvm-readelf -s - | FileCheck %s
|
|
# RUN: llvm-mc -arch=mips < %s -filetype=obj | llvm-readelf -s - | FileCheck %s
|
|
|
|
# Test that TLS relocations cause symbols to be marked as TLS symbols.
|
|
|
|
.set noat
|
|
lui $3, %tlsgd(foo1)
|
|
lui $1, %dtprel_hi(foo2)
|
|
lui $1, %dtprel_lo(foo3)
|
|
lui $1, %tprel_hi(foo4)
|
|
lui $1, %tprel_lo(foo5)
|
|
lw $2, %gottprel(foo6)($28)
|
|
|
|
.hidden foo1
|
|
.hidden foo2
|
|
.hidden foo3
|
|
.hidden foo4
|
|
.hidden foo5
|
|
.hidden foo6
|
|
|
|
# CHECK: 1: {{.+}} {{.+}} TLS GLOBAL HIDDEN UND foo1
|
|
# CHECK: 2: {{.+}} {{.+}} TLS GLOBAL HIDDEN UND foo2
|
|
# CHECK: 3: {{.+}} {{.+}} TLS GLOBAL HIDDEN UND foo3
|
|
# CHECK: 4: {{.+}} {{.+}} TLS GLOBAL HIDDEN UND foo4
|
|
# CHECK: 5: {{.+}} {{.+}} TLS GLOBAL HIDDEN UND foo5
|
|
# CHECK: 6: {{.+}} {{.+}} TLS GLOBAL HIDDEN UND foo6
|