aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-loongarch-elf/relax-medium-call.s
blob: 7b149620f2925987c3f6ae382208472c12a5e5a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.text
a:
  ret
  ret
  ret
b:
  ret
  .fill 0x7fffff0

  call36 a	# min offset, can relax
  call36 a	# overflow, not relax
  tail36 $t0, b	# min offset, can relax
  tail36 $t0, b	# overflow, not relax

  call36 c	# overflow, not relax
  call36 c	# max offset, can relax
  tail36 $t0, d	# overflow, no relax
  tail36 $t0, d # max offset, can relax

  .fill 0x7ffffc8
  ret
  ret
  ret
  ret
  ret
  ret
  ret
  ret
c:
  ret
  ret
  ret
d:
  ret