summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-powerpc/tlsopt1.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-powerpc/tlsopt1.d')
-rw-r--r--ld/testsuite/ld-powerpc/tlsopt1.d25
1 files changed, 25 insertions, 0 deletions
diff --git a/ld/testsuite/ld-powerpc/tlsopt1.d b/ld/testsuite/ld-powerpc/tlsopt1.d
new file mode 100644
index 0000000..df50d77
--- /dev/null
+++ b/ld/testsuite/ld-powerpc/tlsopt1.d
@@ -0,0 +1,25 @@
+#source: tlsopt1.s
+#source: tlslib.s
+#as: -a64
+#ld:
+#objdump: -dr
+#target: powerpc64*-*-*
+
+.*
+
+Disassembly of section \.text:
+
+0+100000e8 <\.__tls_get_addr>:
+.*: (4e 80 00 20|20 00 80 4e) blr
+
+Disassembly of section \.no_opt1:
+
+0+100000ec <\.no_opt1>:
+.*: (38 62 80 08|08 80 62 38) addi r3,r2,-32760
+.*: (2c 24 00 00|00 00 24 2c) cmpdi r4,0
+.*: (41 82 00 10|10 00 82 41) beq .*
+.*: (4b ff ff f1|f1 ff ff 4b) bl 100000e8 <\.__tls_get_addr>
+.*: (60 00 00 00|00 00 00 60) nop
+.*: (48 00 00 0c|0c 00 00 48) b .*
+.*: (4b ff ff e5|e5 ff ff 4b) bl 100000e8 <\.__tls_get_addr>
+.*: (60 00 00 00|00 00 00 60) nop