diff options
Diffstat (limited to 'binutils-2.21/ld/testsuite/ld-powerpc/aix-toc-1a.s')
-rw-r--r-- | binutils-2.21/ld/testsuite/ld-powerpc/aix-toc-1a.s | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/binutils-2.21/ld/testsuite/ld-powerpc/aix-toc-1a.s b/binutils-2.21/ld/testsuite/ld-powerpc/aix-toc-1a.s new file mode 100644 index 0000000..e67d5d3 --- /dev/null +++ b/binutils-2.21/ld/testsuite/ld-powerpc/aix-toc-1a.s @@ -0,0 +1,23 @@ + .macro loadtoc + .toc + .tc sym\@[TC], \@ + + .csect .f1[PR] + .if size == 32 + lwz 1,sym\@[TC](2) + .else + ld 1,sym\@[TC](2) + .endif + .endm + + .globl .f1 + .csect .f1[PR] +.f1: + .rept 0x7ffc * 8 / size + loadtoc + .endr + + .globl f1 + .csect f1[DS] +f1: + .long .f1[PR],TOC[TC0],0 |