summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/ppc/xcoff-toc-1.s
diff options
context:
space:
mode:
Diffstat (limited to 'gas/testsuite/gas/ppc/xcoff-toc-1.s')
-rw-r--r--gas/testsuite/gas/ppc/xcoff-toc-1.s21
1 files changed, 21 insertions, 0 deletions
diff --git a/gas/testsuite/gas/ppc/xcoff-toc-1.s b/gas/testsuite/gas/ppc/xcoff-toc-1.s
new file mode 100644
index 0000000000..ac491aef6d
--- /dev/null
+++ b/gas/testsuite/gas/ppc/xcoff-toc-1.s
@@ -0,0 +1,21 @@
+ .csect _rw_[RW],4
+ .toc
+
+ .csect .text[PR]
+ .align 2
+ .lglobl .foo
+ .csect foo[DS]
+foo:
+ .long .foo, TOC[tc0], 0
+ .csect .text[PR]
+.foo:
+ lwz 1,LC..72(2)
+ blr
+ .align 2
+ .toc
+LC..72:
+ .tc data[TC],data
+ .csect _rw_[RW],4
+ .align 2
+data:
+ .space 0x10000