[Mips] Simplify the code. Replace redundant 'switch' operator by the single 'if' one.