aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/asm
diff options
context:
space:
mode:
authorsmileeye <franksnolf@gmail.com>2019-04-09 22:47:38 +0800
committerBrad Fitzpatrick <bradfitz@golang.org>2019-04-10 14:39:34 +0000
commit607493bed678cbf3a456e9de8e7e74622ec83da8 (patch)
tree5dc04e9e4e7e839fdd05dad0752593b61c294d10 /src/cmd/asm
parenteddb41eb2cb7699f3515a229ff069ca914c7c879 (diff)
downloadgo-607493bed678cbf3a456e9de8e7e74622ec83da8.tar.xz
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/+/171102 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/cmd/asm')
-rw-r--r--src/cmd/asm/internal/arch/mips.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/asm/internal/arch/mips.go b/src/cmd/asm/internal/arch/mips.go
index 22c9ebd2da..79fb7cf02e 100644
--- a/src/cmd/asm/internal/arch/mips.go
+++ b/src/cmd/asm/internal/arch/mips.go
@@ -33,7 +33,7 @@ func IsMIPSCMP(op obj.As) bool {
}
// 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 {
switch op {
case mips.AMUL, mips.AMULU, mips.AMULV, mips.AMULVU,