aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-loongarch-elf/relax-separate-code-overflow.s
blob: df5dd5fee34280eb5eb671acded4bc1a26aab127 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# ld -z separate-code let .text and .rodata in two segment,
# need to consider segment alignment
.text
  # first two la.local relax in the second trip, and result in the third
  # la.local (relax to pcaddi) overflow
  la.local $r12, a
  la.local $r12, b
  .fill 0x3ff8
  # relax in the first trip
  la.local $r12, c
  .fill 0x1fbfec
a:
  .fill 8
b:
  .fill 0x1000
d:
  .fill 0x1

.section .rodata
c:
  .8byte 0x1