aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-powerpc/tocopt3.s
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2011-07-11 12:03:55 +0000
committerAlan Modra <amodra@gmail.com>2011-07-11 12:03:55 +0000
commit2843fdaab1bfef475382e13acfd6651bc4ae9e32 (patch)
tree1452da9ced8a1f64adb4a6c2cb6eeadb04018828 /ld/testsuite/ld-powerpc/tocopt3.s
parent8c5eb9cdcf81e21cf40255e3f86f67f456431f63 (diff)
downloadgdb-2843fdaab1bfef475382e13acfd6651bc4ae9e32.zip
gdb-2843fdaab1bfef475382e13acfd6651bc4ae9e32.tar.gz
gdb-2843fdaab1bfef475382e13acfd6651bc4ae9e32.tar.bz2
* ld-powerpc/tocopt2.s, * ld-powerpc/tocopt2.out,
* ld-powerpc/tocopt2.d: New test. * ld-powerpc/tocopt3.s, * ld-powerpc/tocopt3.d: New test. * ld-powerpc/powerpc.exp (ppc64elftests) Run them.
Diffstat (limited to 'ld/testsuite/ld-powerpc/tocopt3.s')
-rw-r--r--ld/testsuite/ld-powerpc/tocopt3.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/ld/testsuite/ld-powerpc/tocopt3.s b/ld/testsuite/ld-powerpc/tocopt3.s
new file mode 100644
index 0000000..abadbfa
--- /dev/null
+++ b/ld/testsuite/ld-powerpc/tocopt3.s
@@ -0,0 +1,9 @@
+ .section .toc,"aw"
+0:
+ .quad x
+
+ .globl _start
+ .text
+_start:
+ addis 9,2,0b@toc@ha
+ ld 9,0b@toc@l(9)