This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

Re: X86 disassembler fails pmacXXX in SSE5


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.


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