MIPS: Make code generation compliant to R6.

TEST=
BUG=