aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-loongarch-elf/relax-medium-call.s
blob: c0521b65732a5f48509077c8e0203af4252bdb91 (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
.section "ta", "ax"
a:
  ret
  ret
  ret
b:
  ret

.text
  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

.section "tb", "ax"
  ret
  ret
  ret
  ret
  ret
  ret
  ret
  ret
c:
  ret
  ret
  ret
d:
  ret