Added test that results in an output mismatch on SPARC.

We can also improve load-store optimization
and SPARC code generation for this test.