]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/asm/internal/arch: improve the comment of function IsMIPSMUL
authorsmileeye <franksnolf@gmail.com>
Tue, 9 Apr 2019 14:47:38 +0000 (22:47 +0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 10 Apr 2019 14:39:34 +0000 (14:39 +0000)
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>
src/cmd/asm/internal/arch/mips.go

index 22c9ebd2dad92566457b0fd1c0aefa6eb63393dc..79fb7cf02e018db88408e141e5723954e0fea154 100644 (file)
@@ -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,