swap fp and sp in mips asm generation