aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-powerpc/aix-largetoc-1.s
blob: 278390300c2db53b330a7539ee4516b8f060381b (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
	.globl a
	.csect .data[RW]
a:
	.long	1
	.toc
	.tc a[TE],a
	.tc b[TE],a

	.globl foo
	.globl .foo
	.csect foo[DS],3
foo:
	.if size == 32
	.long .foo, TOC[tc0], 0
	.else
	.llong .foo, TOC[tc0], 0
	.endif

	.csect .text[PR]
.foo:
	addis 9,a[TE]@u(2)
	la 9,a[TE]@l(9)

	addis 9,b[TE]@u(2)
	la 9,b[TE]@l(9)