aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2007-09-26 13:40:59 +0000
committerJan Beulich <jbeulich@novell.com>2007-09-26 13:40:59 +0000
commit9a04903eea44cbc4642f10d2a8f8db416a694737 (patch)
treecac4c7f77941510808897374bc350e58ffd8140a /gas/testsuite
parent8977835cde2576229bb1ad01f32bb3e6279b5afe (diff)
downloadgdb-9a04903eea44cbc4642f10d2a8f8db416a694737.zip
gdb-9a04903eea44cbc4642f10d2a8f8db416a694737.tar.gz
gdb-9a04903eea44cbc4642f10d2a8f8db416a694737.tar.bz2
gas/
2007-09-26 Jan Beulich <jbeulich@novell.com> * config/tc-i386.c (build_modrm_byte): Also check for RegEip when considering IP-relative addressing. gas/testsuite/ 2007-09-26 Jan Beulich <jbeulich@novell.com> * gas/i386/reloc64.s: Adjust for %eip-relative addressing no longer generating errors. * gas/i386/reloc64.d, gas/i386/reloc64.l: Update. * gas/i386/x86-64-addr32.s: Remove explicit addr32 prefix for %eip-realtive addressing case. opcodes/ 2007-09-26 Jan Beulich <jbeulich@novell.com> * i386-opc.h (RegEip): Define. (RegEiz): Adjust. * i386-reg.tbl: Add eip. Mark rip and eip with RegRex64. * i386-tbl.h: Re-generate.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog8
-rw-r--r--gas/testsuite/gas/i386/reloc64.d2
-rw-r--r--gas/testsuite/gas/i386/reloc64.l2
-rw-r--r--gas/testsuite/gas/i386/reloc64.s6
-rw-r--r--gas/testsuite/gas/i386/x86-64-addr32.s2
5 files changed, 14 insertions, 6 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index b599228..fa69177 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2007-09-26 Jan Beulich <jbeulich@novell.com>
+
+ * gas/i386/reloc64.s: Adjust for %eip-relative addressing no
+ longer generating errors.
+ * gas/i386/reloc64.d, gas/i386/reloc64.l: Update.
+ * gas/i386/x86-64-addr32.s: Remove explicit addr32 prefix
+ for %eip-realtive addressing case.
+
2007-09-25 Nathan Sidwell <nathan@codesourcery.com>
* gas/m68k/br-isaa.d: Dump relocs too.
diff --git a/gas/testsuite/gas/i386/reloc64.d b/gas/testsuite/gas/i386/reloc64.d
index 333deaa..5c14019 100644
--- a/gas/testsuite/gas/i386/reloc64.d
+++ b/gas/testsuite/gas/i386/reloc64.d
@@ -18,6 +18,7 @@ Disassembly of section \.text:
.*[ ]+R_X86_64_PC8[ ]+xtrn\+0x0*1
.*[ ]+R_X86_64_PC32[ ]+xtrn\+0xf+c
.*[ ]+R_X86_64_PC32[ ]+xtrn\+0xf+c
+.*[ ]+R_X86_64_PC32[ ]+xtrn\+0xf+c
.*[ ]+R_X86_64_PC8[ ]+xtrn\+0xf+f
.*[ ]+R_X86_64_GOT64[ ]+xtrn
.*[ ]+R_X86_64_GOT32[ ]+xtrn
@@ -28,6 +29,7 @@ Disassembly of section \.text:
.*[ ]+R_X86_64_GOTPCREL[ ]+xtrn\+0xf+c
.*[ ]+R_X86_64_GOTPC32[ ]+_GLOBAL_OFFSET_TABLE_\+0x0*2
.*[ ]+R_X86_64_GOTPC32[ ]+_GLOBAL_OFFSET_TABLE_\+0xf+c
+.*[ ]+R_X86_64_GOTPC32[ ]+_GLOBAL_OFFSET_TABLE_\+0xf+c
.*[ ]+R_X86_64_GOTPC32[ ]+_GLOBAL_OFFSET_TABLE_\+0x0*2
.*[ ]+R_X86_64_PLT32[ ]+xtrn
.*[ ]+R_X86_64_PLT32[ ]+xtrn
diff --git a/gas/testsuite/gas/i386/reloc64.l b/gas/testsuite/gas/i386/reloc64.l
index 87a5c77..ded5cab 100644
--- a/gas/testsuite/gas/i386/reloc64.l
+++ b/gas/testsuite/gas/i386/reloc64.l
@@ -1,5 +1,4 @@
.*: Assembler messages:
-.*:29: Error: .*
.*:35: Error: .*
.*:36: Error: .*
.*:37: Error: .*
@@ -17,7 +16,6 @@
.*:54: Error: .*
.*:55: Error: .*
.*:57: Error: .*
-.*:66: Error: .*
.*:73: Error: .*
.*:75: Error: .*
.*:76: Error: .*
diff --git a/gas/testsuite/gas/i386/reloc64.s b/gas/testsuite/gas/i386/reloc64.s
index 7fd741a..f12271d 100644
--- a/gas/testsuite/gas/i386/reloc64.s
+++ b/gas/testsuite/gas/i386/reloc64.s
@@ -26,7 +26,7 @@ ill mov $(xtrn - .), %eax
mov $(xtrn - .), %ax
mov $(xtrn - .), %al
mov xtrn(%rip), %eax
-bad mov xtrn(%eip), %eax
+ mov xtrn(%eip), %eax
call xtrn
jrcxz xtrn
@@ -62,8 +62,8 @@ ill movabs $_GLOBAL_OFFSET_TABLE_, %rax
ill add $_GLOBAL_OFFSET_TABLE_, %eax
ill add $_GLOBAL_OFFSET_TABLE_, %ax
ill add $_GLOBAL_OFFSET_TABLE_, %al
- lea _GLOBAL_OFFSET_TABLE_(%rip), %rax #???
-bad lea _GLOBAL_OFFSET_TABLE_(%eip), %rax
+ lea _GLOBAL_OFFSET_TABLE_(%rip), %rax
+ lea _GLOBAL_OFFSET_TABLE_(%eip), %rax
ill movabs $(_GLOBAL_OFFSET_TABLE_ - .), %rax
add $(_GLOBAL_OFFSET_TABLE_ - .), %rax
ill add $(_GLOBAL_OFFSET_TABLE_ - .), %eax
diff --git a/gas/testsuite/gas/i386/x86-64-addr32.s b/gas/testsuite/gas/i386/x86-64-addr32.s
index c32525f..889c5fd 100644
--- a/gas/testsuite/gas/i386/x86-64-addr32.s
+++ b/gas/testsuite/gas/i386/x86-64-addr32.s
@@ -1,7 +1,7 @@
.text
lea symbol(%eax), %rax
lea symbol(%r8d), %rax
- addr32 lea symbol(%rip), %rax
+ lea symbol(%eip), %rax
addr32 lea symbol, %rax
addr32 mov 0x600898,%al
addr32 mov 0x600898,%ax