diff options
Diffstat (limited to 'src/cmd/compile/internal/ssa/rewriteMIPS.go')
| -rw-r--r-- | src/cmd/compile/internal/ssa/rewriteMIPS.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cmd/compile/internal/ssa/rewriteMIPS.go b/src/cmd/compile/internal/ssa/rewriteMIPS.go index ff696337ef..ffb7d93586 100644 --- a/src/cmd/compile/internal/ssa/rewriteMIPS.go +++ b/src/cmd/compile/internal/ssa/rewriteMIPS.go @@ -4197,7 +4197,7 @@ func rewriteValueMIPS_OpMIPSMUL(v *Value) bool { break } // match: (MUL (MOVWconst [c]) x ) - // cond: isUnsignedPowerOfTwo(uint32(c)) + // cond: isPowerOfTwo(uint32(c)) // result: (SLLconst [int32(log32u(uint32(c)))] x) for { for _i0 := 0; _i0 <= 1; _i0, v_0, v_1 = _i0+1, v_1, v_0 { @@ -4206,7 +4206,7 @@ func rewriteValueMIPS_OpMIPSMUL(v *Value) bool { } c := auxIntToInt32(v_0.AuxInt) x := v_1 - if !(isUnsignedPowerOfTwo(uint32(c))) { + if !(isPowerOfTwo(uint32(c))) { continue } v.reset(OpMIPSSLLconst) @@ -6655,7 +6655,7 @@ func rewriteValueMIPS_OpSelect0(v *Value) bool { break } // match: (Select0 (MULTU (MOVWconst [c]) x )) - // cond: isUnsignedPowerOfTwo(uint32(c)) + // cond: isPowerOfTwo(uint32(c)) // result: (SRLconst [int32(32-log32u(uint32(c)))] x) for { if v_0.Op != OpMIPSMULTU { @@ -6670,7 +6670,7 @@ func rewriteValueMIPS_OpSelect0(v *Value) bool { } c := auxIntToInt32(v_0_0.AuxInt) x := v_0_1 - if !(isUnsignedPowerOfTwo(uint32(c))) { + if !(isPowerOfTwo(uint32(c))) { continue } v.reset(OpMIPSSRLconst) @@ -6874,7 +6874,7 @@ func rewriteValueMIPS_OpSelect1(v *Value) bool { break } // match: (Select1 (MULTU (MOVWconst [c]) x )) - // cond: isUnsignedPowerOfTwo(uint32(c)) + // cond: isPowerOfTwo(uint32(c)) // result: (SLLconst [int32(log32u(uint32(c)))] x) for { if v_0.Op != OpMIPSMULTU { @@ -6889,7 +6889,7 @@ func rewriteValueMIPS_OpSelect1(v *Value) bool { } c := auxIntToInt32(v_0_0.AuxInt) x := v_0_1 - if !(isUnsignedPowerOfTwo(uint32(c))) { + if !(isPowerOfTwo(uint32(c))) { continue } v.reset(OpMIPSSLLconst) |
