public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Change i386 assembler/disassembler for SIB with INDEX==4
@ 2005-01-13 19:35 H. J. Lu
  2005-01-14  0:22 ` Thorsten Glaser
  0 siblings, 1 reply; 7+ messages in thread
From: H. J. Lu @ 2005-01-13 19:35 UTC (permalink / raw)
  To: Allan B. Cruse, binutils; +Cc: gcc, GNU C Library, linux kernel

I am proposing to change i386 assembler/disassembler for SIB with
INDEX==4

http://sources.redhat.com/bugzilla/show_bug.cgi?id=658

It will change the assembler output for (%ebx,[1248]). I am not too
worried about the disassembler output since assembler can't generate
SIB with INDEX==4 directly today. Any comments?


H.J.

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: Change i386 assembler/disassembler for SIB with INDEX==4
@ 2005-01-13 20:33 Allan B. Cruse
  2005-01-13 22:48 ` H. J. Lu
  0 siblings, 1 reply; 7+ messages in thread
From: Allan B. Cruse @ 2005-01-13 20:33 UTC (permalink / raw)
  To: binutils, cruse, hjl; +Cc: gcc, libc-alpha, linux-kernel


On Thu, 13 Jan 2005, "H. J. Lu" <hjl@lucon.org> wrote:
>
>
>
> Subject: Change i386 assembler/disassembler for SIB with INDEX==4
> 
> I am proposing to change i386 assembler/disassembler for SIB with
> INDEX==4
>                                                                                
> http://sources.redhat.com/bugzilla/show_bug.cgi?id=658
>                                                                                
> It will change the assembler output for (%ebx,[1248]). I am not too
> worried about the disassembler output since assembler can't generate
> SIB with INDEX==4 directly today. Any comments?
> 
> 
> H.J.
> 


This change would give programmers the freedom to write instruction-
syntax that the processor cannot actually execute, is that right?  

Perhaps the downside to this would lie in the hours of debugging and
private research each programmer would then be faced with, trying to
figure out why  " movl (%esi,2),%eax "  wasn't doing what he/she had
intended, and which the assembler had dutifully accepted.    --ABC



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-01-14  0:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-13 19:35 Change i386 assembler/disassembler for SIB with INDEX==4 H. J. Lu
2005-01-14  0:22 ` Thorsten Glaser
2005-01-14  0:38   ` Alan Modra
2005-01-13 20:33 Allan B. Cruse
2005-01-13 22:48 ` H. J. Lu
2005-01-14  0:18   ` Alan Modra
2005-01-14  0:32     ` Thorsten Glaser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).