Commit 90590a0c authored by Rob Pike's avatar Rob Pike

cmd/asm: add alias for MOVOA=MOVO on amd64

The alias should exist for both 386 and amd64.
There were a few others missing as well. Add them.

Change-Id: Ia0c3e71abc79f67a7a66941c0d932a8d5d6e9989
Reviewed-on: https://go-review.googlesource.com/5800Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
parent abf8bbb7
...@@ -210,36 +210,45 @@ func archAmd64() *Arch { ...@@ -210,36 +210,45 @@ func archAmd64() *Arch {
instructions[s] = i instructions[s] = i
} }
// Annoying aliases. // Annoying aliases.
instructions["JA"] = x86.AJHI
instructions["JAE"] = x86.AJCC
instructions["JB"] = x86.AJCS instructions["JB"] = x86.AJCS
instructions["JBE"] = x86.AJLS
instructions["JC"] = x86.AJCS instructions["JC"] = x86.AJCS
instructions["JNAE"] = x86.AJCS
instructions["JLO"] = x86.AJCS
instructions["JAE"] = x86.AJCC
instructions["JNB"] = x86.AJCC
instructions["JNC"] = x86.AJCC
instructions["JHS"] = x86.AJCC
instructions["JE"] = x86.AJEQ instructions["JE"] = x86.AJEQ
instructions["JZ"] = x86.AJEQ instructions["JG"] = x86.AJGT
instructions["JNZ"] = x86.AJNE instructions["JHS"] = x86.AJCC
instructions["JBE"] = x86.AJLS instructions["JL"] = x86.AJLT
instructions["JLO"] = x86.AJCS
instructions["JNA"] = x86.AJLS instructions["JNA"] = x86.AJLS
instructions["JA"] = x86.AJHI instructions["JNAE"] = x86.AJCS
instructions["JNB"] = x86.AJCC
instructions["JNBE"] = x86.AJHI instructions["JNBE"] = x86.AJHI
instructions["JS"] = x86.AJMI instructions["JNC"] = x86.AJCC
instructions["JNG"] = x86.AJLE
instructions["JNGE"] = x86.AJLT
instructions["JNL"] = x86.AJGE
instructions["JNLE"] = x86.AJGT
instructions["JNO"] = x86.JOC
instructions["JNP"] = x86.AJPC
instructions["JNS"] = x86.AJPL instructions["JNS"] = x86.AJPL
instructions["JNZ"] = x86.AJNE
instructions["JO"] = x86.JOS
instructions["JP"] = x86.AJPS instructions["JP"] = x86.AJPS
instructions["JPE"] = x86.AJPS instructions["JPE"] = x86.AJPS
instructions["JNP"] = x86.AJPC
instructions["JPO"] = x86.AJPC instructions["JPO"] = x86.AJPC
instructions["JL"] = x86.AJLT instructions["JS"] = x86.AJMI
instructions["JNGE"] = x86.AJLT instructions["JZ"] = x86.AJEQ
instructions["JNL"] = x86.AJGE
instructions["JNG"] = x86.AJLE
instructions["JG"] = x86.AJGT
instructions["JNLE"] = x86.AJGT
instructions["MASKMOVDQU"] = x86.AMASKMOVOU instructions["MASKMOVDQU"] = x86.AMASKMOVOU
instructions["MOVD"] = x86.AMOVQ instructions["MOVD"] = x86.AMOVQ
instructions["MOVDQ2Q"] = x86.AMOVQ instructions["MOVDQ2Q"] = x86.AMOVQ
instructions["MOVNTDQ"] = x86.MOVNTO
instructions["MOVOA"] = x86.AMOVO
instructions["MOVOA"] = x86.MOVO
instructions["PF2ID"] = x86.PF2IL
instructions["PI2FD"] = x86.PI2FL
instructions["PSLLDQ"] = x86.PSLLO
instructions["PSRLDQ"] = x86.PSRLO
unaryDestination := make(map[int]bool) // Instruction takes one operand and result is a destination. unaryDestination := make(map[int]bool) // Instruction takes one operand and result is a destination.
// These instructions write to prog.To. // These instructions write to prog.To.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment