Merge "MIPS32: Fix and refactor in/out reg mask code"