|
28 | 28 | # CHECK-NEXT: pcalau12i $a5, 2 |
29 | 29 | # CHECK-NEXT: ld.d $a5, $a6, -2048 |
30 | 30 |
|
31 | | -# RUN: ld.lld a.o -T underflow-range.t -o a |
32 | | -# RUN: llvm-objdump -d --no-show-raw-insn a | FileCheck --check-prefix=OUTRANGE %s |
| 31 | +# RUN: ld.lld a.o -T underflow-range.t -o a-underflow |
| 32 | +# RUN: llvm-objdump -d --no-show-raw-insn a-underflow | FileCheck --check-prefix=OUTRANGE %s |
33 | 33 |
|
34 | | -# RUN: ld.lld a.o -T overflow-range.t -o a |
35 | | -# RUN: llvm-objdump -d --no-show-raw-insn a | FileCheck --check-prefix=OUTRANGE %s |
| 34 | +# RUN: ld.lld a.o -T overflow-range.t -o a-overflow |
| 35 | +# RUN: llvm-objdump -d --no-show-raw-insn a-overflow | FileCheck --check-prefix=OUTRANGE %s |
36 | 36 |
|
37 | 37 | # OUTRANGE: pcalau12i $a0, 1 |
38 | 38 | # OUTRANGE-NEXT: ld.d $a0, $a0, 0 |
|
44 | 44 | # UNPAIRED: pcalau12i $a0, 2 |
45 | 45 | # UNPAIRED-NEXT: b 8 |
46 | 46 | # UNPAIRED-NEXT: pcalau12i $a0, 2 |
47 | | -# UNPAIRED: ld.d $a0, $a0, -2048 |
| 47 | +# UNPAIRED: ld.d $a0, $a0, -2048 |
48 | 48 |
|
49 | 49 | ## Relocations do not appear in pairs, no relaxations should be applied. |
50 | 50 | # RUN: ld.lld lone-ldr.o -T within-range.t -o lone-ldr |
@@ -84,12 +84,9 @@ SECTIONS { |
84 | 84 | SECTIONS { |
85 | 85 | .text 0x1000: { *(.text) } |
86 | 86 | .got 0x2000: { *(.got) } |
87 | | - .rodate 0x80000800 : { *(.rodata) } /* 0x1000+2GB-0x800 */ |
| 87 | + .rodata 0x80000800 : { *(.rodata) } /* 0x1000+2GB-0x800 */ |
88 | 88 | } |
89 | 89 |
|
90 | | -## This linker script ensures that .rodata and .text are sufficiently (>4GB) |
91 | | -## far apart so that the pcalau12i + ld pair cannot be relaxed to pcalau12i + add. |
92 | | - |
93 | 90 | #--- a.s |
94 | 91 | ## Symbol 'x' is nonpreemptible, the optimization should be applied. |
95 | 92 | .rodata |
|
0 commit comments