Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(803)

Unified Diff: binutils/ld/testsuite/ld-powerpc/aix-ref-1.s

Issue 3018030: [binutils] Bump binutils to 2.20.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « binutils/ld/testsuite/ld-cris/tls-ldgdex-15.d ('k') | binutils/ld/testsuite/ld-powerpc/aix-ref-1-32.od » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: binutils/ld/testsuite/ld-powerpc/aix-ref-1.s
diff --git a/binutils/ld/testsuite/ld-powerpc/aix-ref-1.s b/binutils/ld/testsuite/ld-powerpc/aix-ref-1.s
new file mode 100644
index 0000000000000000000000000000000000000000..33445a6d006a1d28bb647fd89ace3836d25dae7a
--- /dev/null
+++ b/binutils/ld/testsuite/ld-powerpc/aix-ref-1.s
@@ -0,0 +1,57 @@
+ .macro loadtoc,sym
+ .if size == 32
+ lwz 1,\sym(2)
+ .else
+ ld 1,\sym(2)
+ .endif
+ .endm
+
+ .toc
+LC01: .tc stuff[TC],stuff[RW]
+
+ .globl foo1
+ .csect foo1[pr]
+foo1:
+ .align 8
+ nop
+ loadtoc LC01
+
+ .globl foo2
+ .csect foo2[pr]
+foo2:
+ nop
+ loadtoc LC01
+ .ref foo4 , foo6
+
+ .globl foo3
+ .csect foo3[pr]
+foo3:
+ nop
+ loadtoc LC01
+
+ .globl foo4
+ .csect foo4[pr]
+foo4:
+ nop
+ loadtoc LC01
+
+ .globl foo5
+ .csect foo5[pr]
+foo5:
+ nop
+ loadtoc LC01
+ .ref foo3
+
+ .globl foo6
+ .csect foo6[pr]
+foo6:
+ nop
+ loadtoc LC01
+
+ .csect foo1[pr]
+ blr
+ .ref foo2
+
+ .csect stuff[rw]
+stuff:
+ .long 1
« no previous file with comments | « binutils/ld/testsuite/ld-cris/tls-ldgdex-15.d ('k') | binutils/ld/testsuite/ld-powerpc/aix-ref-1-32.od » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698