[mips] Define a helper function which creates an instruction with the same
operands as the prototype instruction but with a different opcode.