From: H.J. Lu Date: Fri, 4 May 2007 00:44:36 +0000 (+0000) Subject: 2007-05-03 H.J. Lu X-Git-Tag: binutils-2_18-branchpoint~871 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bfb568882d0e4b2d8276215e3acc0e86dca4afe0;p=platform%2Fupstream%2Fbinutils.git 2007-05-03 H.J. Lu PR gas/4460 * gas/i386/gotpc.s: Add a new test. * gas/i386/reloc64.s: Likewise. * gas/i386/gotpc.d: Updated. * gas/i386/reloc64.d: Likewise. --- diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 724400c..309acb5 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,5 +1,14 @@ 2007-05-03 H.J. Lu + PR gas/4460 + * gas/i386/gotpc.s: Add a new test. + * gas/i386/reloc64.s: Likewise. + + * gas/i386/gotpc.d: Updated. + * gas/i386/reloc64.d: Likewise. + +2007-05-03 H.J. Lu + * gas/i386/crc32-intel.d: Updated. * gas/i386/crc32.d: Likewise. * gas/i386/sse4_2.d: Likewise. diff --git a/gas/testsuite/gas/i386/gotpc.d b/gas/testsuite/gas/i386/gotpc.d index 499e831..ef79cbd 100644 --- a/gas/testsuite/gas/i386/gotpc.d +++ b/gas/testsuite/gas/i386/gotpc.d @@ -49,4 +49,6 @@ Disassembly of section .text: e0: e0 00 [ ]*loopne e2 e0: (R_386_)?GOTPC _GLOBAL_OFFSET_TABLE_ e2: 00 00 [ ]*add %al,\(%eax\) e4: 00 00 [ ]*add %al,\(%eax\) e4: (R_386_)?GOTOFF _GLOBAL_OFFSET_TABLE_ - ... + e6: 00 00 [ ]*add %al,\(%eax\) + e8: 8b 83 00 00 00 00 [ ]*mov 0x0\(%ebx\),%eax ea: (R_386_)?GOTOFF _GLOBAL_OFFSET_TABLE_ +#pass diff --git a/gas/testsuite/gas/i386/gotpc.s b/gas/testsuite/gas/i386/gotpc.s index 5787b8e..fc771f6 100644 --- a/gas/testsuite/gas/i386/gotpc.s +++ b/gas/testsuite/gas/i386/gotpc.s @@ -38,3 +38,4 @@ test: movl _GLOBAL_OFFSET_TABLE_@GOTOFF(%ebx), %ebx .long _GLOBAL_OFFSET_TABLE_+[.-test] .long _GLOBAL_OFFSET_TABLE_@GOTOFF + movl _GLOBAL_OFFSET_TABLE_@GOTOFF (%ebx), %eax diff --git a/gas/testsuite/gas/i386/reloc64.d b/gas/testsuite/gas/i386/reloc64.d index 11dfdb4..333deaa 100644 --- a/gas/testsuite/gas/i386/reloc64.d +++ b/gas/testsuite/gas/i386/reloc64.d @@ -47,6 +47,7 @@ Disassembly of section \.text: .*[ ]+R_X86_64_TPOFF64[ ]+xtrn .*[ ]+R_X86_64_TPOFF32[ ]+xtrn .*[ ]+R_X86_64_TPOFF32[ ]+xtrn +.*[ ]+R_X86_64_TPOFF32[ ]+xtrn Disassembly of section \.data: #... .*[ ]+R_X86_64_64[ ]+xtrn diff --git a/gas/testsuite/gas/i386/reloc64.s b/gas/testsuite/gas/i386/reloc64.s index 47ebfa8..7fd741a 100644 --- a/gas/testsuite/gas/i386/reloc64.s +++ b/gas/testsuite/gas/i386/reloc64.s @@ -195,3 +195,6 @@ bad .byte xtrn@gottpoff bad .byte xtrn@tlsld bad .byte xtrn@dtpoff bad .byte xtrn@tpoff + + .text + mov xtrn@tpoff (%rbx), %eax