Skip to content

Commit b57c40e

Browse files
committed
Modify test. Add --relax option.
1 parent 2066c5f commit b57c40e

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

lld/test/ELF/loongarch-relax-tls-le.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# RUN: llvm-mc --filetype=obj --triple=loongarch32 -mattr=+relax --defsym ELF32=1 %s -o %t.32.o
44
# RUN: llvm-mc --filetype=obj --triple=loongarch64 -mattr=+relax %s -o %t.64.o
55

6-
# RUN: ld.lld %t.32.o -o %t.32
6+
# RUN: ld.lld --relax %t.32.o -o %t.32
77
# RUN: llvm-objdump -d --no-show-raw-insn %t.32 | FileCheck --check-prefixes=RELAX32 %s
88

9-
# RUN: ld.lld %t.64.o -o %t.64
9+
# RUN: ld.lld --relax %t.64.o -o %t.64
1010
# RUN: llvm-objdump -d --no-show-raw-insn %t.64 | FileCheck --check-prefixes=RELAX64 %s
1111

1212
# RELAX32-LABEL: <_start>:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# RUN: ld.lld -shared %t/a.32.o %t/bc.32.o -o %t/gd.32.so
2121
# RUN: llvm-readobj -r %t/gd.32.so | FileCheck --check-prefix=GD32-REL %s
2222
# RUN: llvm-objdump -d --no-show-raw-insn %t/gd.32.so | FileCheck --check-prefix=GD32 %s
23-
# RUN: ld.lld -shared %t/a.32.relax.o %t/bc.32.o -o %t/gd.32.relax.so
23+
# RUN: ld.lld --relax -shared %t/a.32.relax.o %t/bc.32.o -o %t/gd.32.relax.so
2424
# RUN: llvm-readobj -r %t/gd.32.relax.so | FileCheck --check-prefix=GD32-REL-RELAX %s
2525
# RUN: llvm-objdump -d --no-show-raw-insn %t/gd.32.relax.so | FileCheck --check-prefix=GD32-RELAX %s
2626

@@ -41,7 +41,7 @@
4141
# RUN: ld.lld -shared %t/a.64.o %t/bc.64.o -o %t/gd.64.so
4242
# RUN: llvm-readobj -r %t/gd.64.so | FileCheck --check-prefix=GD64-REL %s
4343
# RUN: llvm-objdump -d --no-show-raw-insn %t/gd.64.so | FileCheck --check-prefix=GD64 %s
44-
# RUN: ld.lld -shared %t/a.64.relax.o %t/bc.64.o -o %t/gd.64.relax.so
44+
# RUN: ld.lld --relax -shared %t/a.64.relax.o %t/bc.64.o -o %t/gd.64.relax.so
4545
# RUN: llvm-readobj -r %t/gd.64.relax.so | FileCheck --check-prefix=GD64-REL-RELAX %s
4646
# RUN: llvm-objdump -d --no-show-raw-insn %t/gd.64.relax.so | FileCheck --check-prefix=GD64-RELAX %s
4747

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
# RUN: llvm-readobj -r %t/ld.32.so | FileCheck --check-prefix=LD32-REL %s
1818
# RUN: llvm-readelf -x .got %t/ld.32.so | FileCheck --check-prefix=LD32-GOT %s
1919
# RUN: llvm-objdump -d --no-show-raw-insn %t/ld.32.so | FileCheck --check-prefixes=LD32 %s
20-
# RUN: ld.lld -shared %t/a.32.relax.o -o %t/ld.32.relax.so
20+
# RUN: ld.lld --relax -shared %t/a.32.relax.o -o %t/ld.32.relax.so
2121
# RUN: llvm-objdump -d --no-show-raw-insn %t/ld.32.relax.so | FileCheck --check-prefixes=LD32-RELAX %s
2222

2323
## LA32 LD -> LE
2424
# RUN: ld.lld %t/a.32.o %t/tga.32.o -o %t/le.32
2525
# RUN: llvm-readelf -r %t/le.32 | FileCheck --check-prefix=NOREL %s
2626
# RUN: llvm-readelf -x .got %t/le.32 | FileCheck --check-prefix=LE32-GOT %s
2727
# RUN: llvm-objdump -d --no-show-raw-insn %t/le.32 | FileCheck --check-prefixes=LE32 %s
28-
# RUN: ld.lld %t/a.32.relax.o %t/tga.32.o -o %t/le.32.relax
28+
# RUN: ld.lld --relax %t/a.32.relax.o %t/tga.32.o -o %t/le.32.relax
2929
# RUN: llvm-readelf -x .got %t/le.32.relax | FileCheck --check-prefix=LE32-GOT-RELAX %s
3030
# RUN: llvm-objdump -d --no-show-raw-insn %t/le.32.relax | FileCheck --check-prefixes=LE32-RELAX %s
3131

@@ -34,15 +34,15 @@
3434
# RUN: llvm-readobj -r %t/ld.64.so | FileCheck --check-prefix=LD64-REL %s
3535
# RUN: llvm-readelf -x .got %t/ld.64.so | FileCheck --check-prefix=LD64-GOT %s
3636
# RUN: llvm-objdump -d --no-show-raw-insn %t/ld.64.so | FileCheck --check-prefixes=LD64 %s
37-
# RUN: ld.lld -shared %t/a.64.relax.o -o %t/ld.64.relax.so
37+
# RUN: ld.lld --relax -shared %t/a.64.relax.o -o %t/ld.64.relax.so
3838
# RUN: llvm-objdump -d --no-show-raw-insn %t/ld.64.relax.so | FileCheck --check-prefixes=LD64-RELAX %s
3939

4040
## LA64 LD -> LE
4141
# RUN: ld.lld %t/a.64.o %t/tga.64.o -o %t/le.64
4242
# RUN: llvm-readelf -r %t/le.64 | FileCheck --check-prefix=NOREL %s
4343
# RUN: llvm-readelf -x .got %t/le.64 | FileCheck --check-prefix=LE64-GOT %s
4444
# RUN: llvm-objdump -d --no-show-raw-insn %t/le.64 | FileCheck --check-prefixes=LE64 %s
45-
# RUN: ld.lld %t/a.64.relax.o %t/tga.64.o -o %t/le.64.relax
45+
# RUN: ld.lld --relax %t/a.64.relax.o %t/tga.64.o -o %t/le.64.relax
4646
# RUN: llvm-readelf -x .got %t/le.64.relax | FileCheck --check-prefix=LE64-GOT-RELAX %s
4747
# RUN: llvm-objdump -d --no-show-raw-insn %t/le.64.relax | FileCheck --check-prefixes=LE64-RELAX %s
4848

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
# RUN: ld.lld %t.32.o -o %t.32
99
# RUN: llvm-nm -p %t.32 | FileCheck --check-prefixes=NM %s
1010
# RUN: llvm-objdump -d --no-show-raw-insn %t.32 | FileCheck --check-prefixes=LE,LE32 %s
11-
# RUN: ld.lld %t.32.relax.o -o %t.32.relax
11+
# RUN: ld.lld --relax %t.32.relax.o -o %t.32.relax
1212
# RUN: llvm-objdump -d --no-show-raw-insn %t.32.relax | FileCheck --check-prefixes=LE,LE32-RELAX %s
1313

1414
# RUN: ld.lld %t.64.o -o %t.64
1515
# RUN: llvm-objdump -d --no-show-raw-insn %t.64 | FileCheck --check-prefixes=LE,LE64 %s
16-
# RUN: ld.lld %t.64.relax.o -o %t.64.relax
16+
# RUN: ld.lld --relax %t.64.relax.o -o %t.64.relax
1717
# RUN: llvm-objdump -d --no-show-raw-insn %t.64.relax | FileCheck --check-prefixes=LE,LE64-RELAX %s
1818

1919
# RUN: not ld.lld -shared %t.32.o -o /dev/null 2>&1 | FileCheck %s --check-prefix=ERR --implicit-check-not=error:

0 commit comments

Comments
 (0)