[mips] Use a helper function which compares the size of the source and
destination operands of an instruction.

No functionality changes.