X86 disassembler fails pmacXXX in SSE5
H.J. Lu
hjl.tools@gmail.com
Mon Sep 8 17:31:00 GMT 2008
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.
More information about the Binutils
mailing list