From: Keith Randall Date: Wed, 21 Oct 2015 19:32:14 +0000 (-0700) Subject: cmd/internal/obj: fix PSRLW opcode X-Git-Tag: go1.6beta1~757 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d96b4c494fcf915a49b004d59018c46deaa069bb;p=gostls13.git cmd/internal/obj: fix PSRLW opcode The reg-reg version compiled to PSRAW, not PSRLW (arithmetic instead of logical shift right). Fixes #13010. Change-Id: I69a47bd83c8bbe66c7f8d82442ab45e9bf3b94fb Reviewed-on: https://go-review.googlesource.com/16168 Reviewed-by: Ian Lance Taylor --- diff --git a/src/cmd/internal/obj/x86/asm6.go b/src/cmd/internal/obj/x86/asm6.go index 8159e5934f..29d33f92af 100644 --- a/src/cmd/internal/obj/x86/asm6.go +++ b/src/cmd/internal/obj/x86/asm6.go @@ -1196,7 +1196,7 @@ var optab = {APSRLO, ypsdq, Pq, [23]uint8{0x73, 03}}, {APSRLL, yps, Py3, [23]uint8{0xd2, 0x72, 02, Pe, 0xd2, Pe, 0x72, 02}}, {APSRLQ, yps, Py3, [23]uint8{0xd3, 0x73, 02, Pe, 0xd3, Pe, 0x73, 02}}, - {APSRLW, yps, Py3, [23]uint8{0xd1, 0x71, 02, Pe, 0xe1, Pe, 0x71, 02}}, + {APSRLW, yps, Py3, [23]uint8{0xd1, 0x71, 02, Pe, 0xd1, Pe, 0x71, 02}}, {APSUBB, yxm, Pe, [23]uint8{0xf8}}, {APSUBL, yxm, Pe, [23]uint8{0xfa}}, {APSUBQ, yxm, Pe, [23]uint8{0xfb}},