diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2007-05-04 00:44:36 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2007-05-04 00:44:36 +0000 |
commit | bfb568882d0e4b2d8276215e3acc0e86dca4afe0 (patch) | |
tree | 4841cdfe1ec29ae7b62e1f5f640b50292942a518 /gas | |
parent | 0787a12d29ae23928602e975a49950bebc4fd0ed (diff) | |
download | gdb-bfb568882d0e4b2d8276215e3acc0e86dca4afe0.zip gdb-bfb568882d0e4b2d8276215e3acc0e86dca4afe0.tar.gz gdb-bfb568882d0e4b2d8276215e3acc0e86dca4afe0.tar.bz2 |
2007-05-03 H.J. Lu <hongjiu.lu@intel.com>
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.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 9 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/gotpc.d | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/gotpc.s | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/reloc64.d | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/reloc64.s | 3 |
5 files changed, 17 insertions, 1 deletions
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 <hongjiu.lu@intel.com> + 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 <hongjiu.lu@intel.com> + * 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 <test\+0xe2> 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 |