Open TACIXAT opened 3 years ago
cc @cherrymui
package main
import (
"golang.org/x/arch/x86/x86asm"
"log"
)
func main() {
bs := []byte{
0xc5, 0xf9, 0xef, 0xc0}
off := 0
for off < len(bs) {
inst, err := x86asm.Decode(bs[off:], 64)
if err != nil {
log.Fatal(err)
}
log.Println(inst)
off += inst.Len
}
}
2021/07/22 14:40:40 Prefix(0xc5) Prefix(0xf9) OUT DX, EAX
2021/07/22 14:40:40 Prefix(0xc0) Op(0)
Should be a vpxor.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Didn't try. Documentation says no.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
vmovups zmm0,zmm1
or somethingWhat did you see instead?
unrecognized instruction