Skip to content

Commit d5c9d64

Browse files
committed
Modify test. Add --relax option.
1 parent b2f11e3 commit d5c9d64

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lld/test/ELF/loongarch-relax-tlsdesc.s

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,28 @@
22
# RUN: rm -rf %t && split-file %s %t && cd %t
33
# RUN: llvm-mc -filetype=obj -triple=loongarch64 -mattr=+relax a.s -o a.64.o
44
# RUN: llvm-mc -filetype=obj -triple=loongarch64 -mattr=+relax c.s -o c.64.o
5-
# RUN: ld.lld -shared -soname=c.64.so c.64.o -o c.64.so
5+
# RUN: ld.lld --relax -shared -soname=c.64.so c.64.o -o c.64.so
66

77
## Test the TLSDESC relaxation.
8-
# RUN: ld.lld -shared -z now a.64.o c.64.o -o a.64.so
8+
# RUN: ld.lld --relax -shared -z now a.64.o c.64.o -o a.64.so
99
# RUN: llvm-readobj -r -x .got a.64.so | FileCheck --check-prefix=GD64-RELA %s
1010
# RUN: llvm-objdump --no-show-raw-insn -dr -h a.64.so | FileCheck %s --check-prefix=GD64
1111

1212
## FIXME: The transition frome TLSDESC to IE/LE has not yet been implemented.
1313
## Keep the dynamic relocations and hand them over to dynamic linker.
1414

15-
# RUN: ld.lld -e 0 -z now a.64.o c.64.o -o a.64.le
15+
# RUN: ld.lld --relax -e 0 -z now a.64.o c.64.o -o a.64.le
1616
# RUN: llvm-readobj -r -x .got a.64.le | FileCheck --check-prefix=LE64-RELA %s
1717
# RUN: llvm-objdump --no-show-raw-insn -d -h a.64.le | FileCheck %s --check-prefix=LE64
1818

19-
# RUN: ld.lld -e 0 -z now --no-relax a.64.o c.64.o -o a.64.le.norelax
19+
# RUN: ld.lld --no-relax -e 0 -z now a.64.o c.64.o -o a.64.le.norelax
2020
# RUN: llvm-objdump --no-show-raw-insn -d -h a.64.le.norelax | FileCheck %s --check-prefix=LE64-NORELAX
2121

22-
# RUN: ld.lld -e 0 -z now a.64.o c.64.so -o a.64.ie
22+
# RUN: ld.lld --relax -e 0 -z now a.64.o c.64.so -o a.64.ie
2323
# RUN: llvm-readobj -r -x .got a.64.ie | FileCheck --check-prefix=IE64-RELA %s
2424
# RUN: llvm-objdump --no-show-raw-insn -d -h a.64.ie | FileCheck %s --check-prefix=IE64
2525

26-
# RUN: ld.lld -e 0 -z now --no-relax a.64.o c.64.so -o a.64.ie.norelax
26+
# RUN: ld.lld --no-relax -e 0 -z now a.64.o c.64.so -o a.64.ie.norelax
2727
# RUN: llvm-objdump --no-show-raw-insn -d -h a.64.ie.norelax | FileCheck %s --check-prefix=IE64-NORELAX
2828

2929
# GD64-RELA: .rela.dyn {

0 commit comments

Comments
 (0)