aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authornobody <>2005-04-07 00:53:23 +0000
committernobody <>2005-04-07 00:53:23 +0000
commit4b4797def57b312d1dae94031d02a262b4872a3a (patch)
treeaef2eb295966e6fb46431a4d53fab878092993ae /gas
parent3be443902f896a77c4b1e8a9143ee8ec5dce926c (diff)
downloadgdb-4b4797def57b312d1dae94031d02a262b4872a3a.zip
gdb-4b4797def57b312d1dae94031d02a262b4872a3a.tar.gz
gdb-4b4797def57b312d1dae94031d02a262b4872a3a.tar.bz2
This commit was manufactured by cvs2svn to create branch 'binutils-
2_16-branch'. Cherrypick from master 2005-04-07 00:53:22 UTC H.J. Lu <hjl.tools@gmail.com> 'gas/': gas/testsuite/gas/i386/x86-64-pcrel.d gas/testsuite/gas/i386/x86-64-pcrel.s
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/gas/i386/x86-64-pcrel.d14
-rw-r--r--gas/testsuite/gas/i386/x86-64-pcrel.s9
2 files changed, 23 insertions, 0 deletions
diff --git a/gas/testsuite/gas/i386/x86-64-pcrel.d b/gas/testsuite/gas/i386/x86-64-pcrel.d
new file mode 100644
index 0000000..3d647bf
--- /dev/null
+++ b/gas/testsuite/gas/i386/x86-64-pcrel.d
@@ -0,0 +1,14 @@
+#objdump: -drw
+#name: x86-64 pcrel
+
+.*: +file format elf64-x86-64
+
+Disassembly of section .text:
+
+0+000 <_start>:
+[ ]*[0-9a-f]+:[ ]+b0 00[ ]+movb?[ ]+\$(0x)?0,%al[ ]*[0-9a-f]+:[ ]+R_X86_64_PC8[ ]+xtrn\+(0x)?1
+[ ]*[0-9a-f]+:[ ]+66 b8 00 00[ ]+movw?[ ]+\$(0x)?0,%ax[ ]*[0-9a-f]+:[ ]+R_X86_64_PC16[ ]+xtrn\+(0x)?2
+[ ]*[0-9a-f]+:[ ]+b8 00 00 00 00[ ]+movl?[ ]+\$(0x)?0,%eax[ ]*[0-9a-f]+:[ ]+R_X86_64_PC32[ ]+xtrn\+(0x)?1
+[ ]*[0-9a-f]+:[ ]+48 c7 c0 00 00 00 00[ ]+movq?[ ]+\$(0x)?0,%rax[ ]*[0-9a-f]+:[ ]+R_X86_64_PC32[ ]+xtrn\+(0x)?3
+[ ]*[0-9a-f]+:[ ]+48 c7 c0 00 00 00 00[ ]+movq?[ ]+\$(0x)?0,%rax[ ]*[0-9a-f]+:[ ]+R_X86_64_32S[ ]+xtrn
+#pass
diff --git a/gas/testsuite/gas/i386/x86-64-pcrel.s b/gas/testsuite/gas/i386/x86-64-pcrel.s
new file mode 100644
index 0000000..c58e093
--- /dev/null
+++ b/gas/testsuite/gas/i386/x86-64-pcrel.s
@@ -0,0 +1,9 @@
+ .text
+_start:
+ movb $(xtrn - .), %al
+ movw $(xtrn - .), %ax
+ movl $(xtrn - .), %eax
+ movq $(xtrn - .), %rax
+ movq $xtrn, %rax
+
+ .p2align 4,0