There is a bug in spim 6.5 where doing the following would generate the wrong code: lw $s0, FRAMESIZE-4($sp) A way to get around this is to do -4+FRAMESIZE($sp). Here is a patch to fix this bug. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 28852 [details, diff] A trivial patch to fix this bug
Can you give an example of the wrong code please? Ideal would be code generated before and after your patch. Thanks.
Ok, confirmed bug and patch with upstream. Added to CVS. Thanks for the bug report and patch.