Retro68/binutils/ld/testsuite/ld-powerpc/aix-largetoc-1.s
Wolfgang Thaller f485e125c4 binutils 2.39
2022-10-27 20:45:45 +02:00

26 lines
303 B
ArmAsm

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