]> Cypherpunks repositories - gostls13.git/commitdiff
6a/6l: fix MOVOU encoding
authorEvan Shaw <chickencha@gmail.com>
Mon, 1 Nov 2010 20:14:43 +0000 (16:14 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 1 Nov 2010 20:14:43 +0000 (16:14 -0400)
The andproto field was set incorrectly, causing 6a to encode illegal
instructions.

R=rsc
CC=golang-dev
https://golang.org/cl/2781042

src/cmd/6l/optab.c

index c729f0e233caf203102ae32b804ceb138f820658..378db6d375d70c96821dc4ee11fd8018bbd8efce 100644 (file)
@@ -783,7 +783,7 @@ Optab optab[] =
        { AMOVBWSX,     ymb_rl, Pq, 0xbe },
        { AMOVBWZX,     ymb_rl, Pq, 0xb6 },
        { AMOVO,        yxmov,  Pe, 0x6f,0x7f },
-       { AMOVOU,       yxmov,  Pf2, 0x6f,0x7f },
+       { AMOVOU,       yxmov,  Pf3, 0x6f,0x7f },
        { AMOVHLPS,     yxr,    Pm, 0x12 },
        { AMOVHPD,      yxmov,  Pe, 0x16,0x17 },
        { AMOVHPS,      yxmov,  Pm, 0x16,0x17 },