Commit 607493be authored by smileeye's avatar smileeye Committed by Brad Fitzpatrick

cmd/asm/internal/arch: improve the comment of function IsMIPSMUL

The check of MADD&MSUB was added to the function IsMIPSMUL in
a previous commit, and the comments should also be updated.

Change-Id: I2d3da055d55b459b908714c542dff99ab5c6cf99
Reviewed-on: https://go-review.googlesource.com/c/go/+/171102Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent eddb41eb
...@@ -33,7 +33,7 @@ func IsMIPSCMP(op obj.As) bool { ...@@ -33,7 +33,7 @@ func IsMIPSCMP(op obj.As) bool {
} }
// IsMIPSMUL reports whether the op (as defined by an mips.A* constant) is // IsMIPSMUL reports whether the op (as defined by an mips.A* constant) is
// one of the MUL/DIV/REM instructions that require special handling. // one of the MUL/DIV/REM/MADD/MSUB instructions that require special handling.
func IsMIPSMUL(op obj.As) bool { func IsMIPSMUL(op obj.As) bool {
switch op { switch op {
case mips.AMUL, mips.AMULU, mips.AMULV, mips.AMULVU, case mips.AMUL, mips.AMULU, mips.AMULV, mips.AMULVU,
......
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