From 607493bed678cbf3a456e9de8e7e74622ec83da8 Mon Sep 17 00:00:00 2001 From: smileeye Date: Tue, 9 Apr 2019 22:47:38 +0800 Subject: [PATCH] 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 --- src/cmd/asm/internal/arch/mips.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.48.1