This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: SSE/x86_64 fix
- To: Jan Hubicka <jh at suse dot cz>
- Subject: Re: SSE/x86_64 fix
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Fri, 5 Jan 2001 13:08:46 +1100 (EST)
- cc: patches at x86-64 dot org, binutils at sources dot redhat dot com
On Fri, 5 Jan 2001, Alan Modra wrote:
> On Thu, 4 Jan 2001, Jan Hubicka wrote:
>
> > + /* All opcodes on i386 have eighter 1 or 2 bytes. We may use third
> > + byte for the SSE instructions to specify prefix they require. */
> > + if (i.tm.base_opcode & 0xff0000)
> > + add_prefix ((i.tm.base_opcode >> 16) & 0xff);
>
> Err, what about `lfence' and `mfence'?
> {"lfence", 0, 0x0faee8, X, CpuP4, FP, { 0, 0, 0 } },
> {"mfence", 0, 0x0faef0, X, CpuP4, FP, { 0, 0, 0 } },
You can probably fix this problem with the following.
{"lfence", 0, 0x0fae, 0xe8, CpuP4, FP|ImmExt, { 0, 0, 0 } },
{"mfence", 0, 0x0fae, 0xf0, CpuP4, FP|ImmExt, { 0, 0, 0 } },
If this works (please check it, I haven't!), the patch is OK to commit
(with spelling fix for `either')
--
Linuxcare. Support for the Revolution.