This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: SSE/x86_64 fix


On Thu, Jan 04, 2001 at 11:10:36PM +0100, Jan Hubicka wrote:
> Hi
> The x86_64 insist on placing the REX prefix as last.  The SSE uses
> REP/REPNZ and DATA prefixes to distinguish various SSE operations and
> even when they are documented as part of opcodes, they behave as prefixes
> in simulator - clears out the REX prefix.
> 
> So I need to take care to place REX prefix last.
> 
> Honza
> Thu Jan  4 23:09:18 MET 2001  Jan Hubicka  <jh@suse.cz.
> 
> 	* tc-i386.c (md_assemble): Handle third byte of the opcode as prefix.
> 
> --- /home3/hubicka/src/gas/config/tc-i386.c	Thu Jan  4 22:25:14 2001
> +++ gas/config/tc-i386.c	Wed Aug  9 05:16:22 2000
> @@ -2826,6 +2828,11 @@ md_assemble (line)
>  	/* Output normal instructions here.  */
>  	unsigned char *q;
>  
> +	/* All opcodes on i386 have eighter 1 or 2 bytes.  We may use third

Minor nit, please spell either correctly in the above comment.

-- 
Michael Meissner, Red Hat, Inc.  (GCC group)
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work:	  meissner@redhat.com		phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org	fax:   +1 978-692-4482

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]