[mips] Improve code generation for constant multiplication using shifts, adds and
subs.