gas/testsuite/
2007-09-26 Jan Beulich <jbeulich@novell.com> * gas/i386/x86-64-addr32.d: Adjust expectations. opcodes/ 2007-09-26 Jan Beulich <jbeulich@novell.com> * i386-dis.c (OP_E_extended): Distinguish rip- and eip- relative addressing. Update used_prefixes based on whether any base or index register was printed.
This commit is contained in:
parent
9a04903eea
commit
8776771175
|
@ -1,3 +1,7 @@
|
||||||
|
2007-09-26 Jan Beulich <jbeulich@novell.com>
|
||||||
|
|
||||||
|
* gas/i386/x86-64-addr32.d: Adjust expectations.
|
||||||
|
|
||||||
2007-09-26 Jan Beulich <jbeulich@novell.com>
|
2007-09-26 Jan Beulich <jbeulich@novell.com>
|
||||||
|
|
||||||
* gas/i386/reloc64.s: Adjust for %eip-relative addressing no
|
* gas/i386/reloc64.s: Adjust for %eip-relative addressing no
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
Disassembly of section .text:
|
Disassembly of section .text:
|
||||||
|
|
||||||
0+000 <.text>:
|
0+000 <.text>:
|
||||||
[ ]*0:[ ]+67 48 8d 80 00 00 00 00[ ]+addr32[ ]+lea[ ]+0x0\(%[re]ax\),%rax.*
|
[ ]*0:[ ]+67 48 8d 80 00 00 00 00[ ]+(addr32[ ]+)?lea[ ]+0x0\(%eax\),%rax.*
|
||||||
[ ]*8:[ ]+67 49 8d 80 00 00 00 00[ ]+addr32[ ]+lea[ ]+0x0\(%r8d?\),%rax.*
|
[ ]*8:[ ]+67 49 8d 80 00 00 00 00[ ]+(addr32[ ]+)?lea[ ]+0x0\(%r8d\),%rax.*
|
||||||
[ ]*10:[ ]+67 48 8d 05 00 00 00 00[ ]+addr32[ ]+lea[ ]+0x0\(%[re]ip\),%rax.*
|
[ ]*10:[ ]+67 48 8d 05 00 00 00 00[ ]+(addr32[ ]+)?lea[ ]+0x0\(%eip\),%rax.*
|
||||||
[ ]*18:[ ]+67 48 8d 04 25 00 00 00 00[ ]+addr32[ ]+lea[ ]+0x0,%rax.*
|
[ ]*18:[ ]+67 48 8d 04 25 00 00 00 00[ ]+addr32[ ]+lea[ ]+0x0,%rax.*
|
||||||
[ ]*21:[ ]+67 a0 98 08 60 00[ ]+addr32[ ]+mov[ ]+0x600898,%al
|
[ ]*21:[ ]+67 a0 98 08 60 00[ ]+addr32[ ]+mov[ ]+0x600898,%al
|
||||||
[ ]*27:[ ]+67 66 a1 98 08 60 00[ ]+addr32[ ]+mov[ ]+0x600898,%ax
|
[ ]*27:[ ]+67 66 a1 98 08 60 00[ ]+addr32[ ]+mov[ ]+0x600898,%ax
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
2007-09-26 Jan Beulich <jbeulich@novell.com>
|
||||||
|
|
||||||
|
* i386-dis.c (OP_E_extended): Distinguish rip- and eip-
|
||||||
|
relative addressing. Update used_prefixes based on whether any
|
||||||
|
base or index register was printed.
|
||||||
|
|
||||||
2007-09-26 Jan Beulich <jbeulich@novell.com>
|
2007-09-26 Jan Beulich <jbeulich@novell.com>
|
||||||
|
|
||||||
* i386-opc.h (RegEip): Define.
|
* i386-opc.h (RegEip): Define.
|
||||||
|
|
|
@ -6390,17 +6390,20 @@ OP_E_extended (int bytemode, int sizeflag, int has_drex)
|
||||||
if (riprel)
|
if (riprel)
|
||||||
{
|
{
|
||||||
set_op (disp, 1);
|
set_op (disp, 1);
|
||||||
oappend ("(%rip)");
|
oappend (sizeflag & AFLAG ? "(%rip)" : "(%eip)");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (havebase || haveindex || riprel)
|
||||||
|
used_prefixes |= PREFIX_ADDR;
|
||||||
|
|
||||||
if (havedisp || (intel_syntax && riprel))
|
if (havedisp || (intel_syntax && riprel))
|
||||||
{
|
{
|
||||||
*obufp++ = open_char;
|
*obufp++ = open_char;
|
||||||
if (intel_syntax && riprel)
|
if (intel_syntax && riprel)
|
||||||
{
|
{
|
||||||
set_op (disp, 1);
|
set_op (disp, 1);
|
||||||
oappend ("rip");
|
oappend (sizeflag & AFLAG ? "rip" : "eip");
|
||||||
}
|
}
|
||||||
*obufp = '\0';
|
*obufp = '\0';
|
||||||
if (havebase)
|
if (havebase)
|
||||||
|
|
Loading…
Reference in New Issue