This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: X86 disassembler fails pmacXXX in SSE5
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: "Dwarakanath Rajagopal" <dwarak dot rajagopal at amd dot com>, binutils <binutils at sourceware dot org>, tony dot linthicum at amd dot com
- Date: Mon, 8 Sep 2008 10:30:09 -0700
- Subject: Re: X86 disassembler fails pmacXXX in SSE5
- References: <6dc9ffc80809081011u18e6ee83y485f4906c3c786c5@mail.gmail.com>
On Mon, Sep 8, 2008 at 10:11 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> Hi,
>
> X86 disassembler fails pmacXXX in SSE5:
>
> http://www.sourceware.org/bugzilla/show_bug.cgi?id=6873
>
This patch seems to fix it:
--- opcodes/i386-dis.c.sse5 2008-09-08 09:34:48.000000000 -0700
+++ opcodes/i386-dis.c 2008-09-08 10:19:16.000000000 -0700
@@ -13076,10 +13076,10 @@ OP_DREX4 (int flag_bytemode, int sizefla
drex_reg = DREX_XMM (drex_byte);
modrm_reg = modrm.reg + ((drex_byte & REX_R) ? 8 : 0);
- /* Is OC0 legal? If not, hardwire oc0 == 1. */
+ /* Is OC0 legal? If not, hardwire oc0 == 0. */
if (flag_bytemode & DREX_NO_OC0)
{
- oc0 = 1;
+ oc0 = 0;
if (DREX_OC0 (drex_byte))
BadOp ();
}
--
H.J.