ARM/iwmmxt sibling call fix

Richard Earnshaw Richard.Earnshaw@arm.com
Fri Apr 23 09:09:00 GMT 2004


On Fri, 2004-04-23 at 05:01, Daniel Jacobowitz wrote:

> 
> If we're also saving some iWMMXt register, though, we can do this:
> 
> 	stmfd	sp!, {r4, r5, r6}
> 	wstrd	wr0, [sp, #-12]!
> 	...
> 	wldrd	wr0, [sp], #12
> 	ldmib	sp!, {r4, r5, r6}
> 

Either #12 on the post index OR ldmib.  You don't want both.

> I'm going to stand by the patch I submitted, which is a correctness
> fix, but it would be nice to do the above instead - it's two cycles
> shorter.  It doesn't work if we're saving no iWMMXt registers, but I
> am guessing that the code you've added to align the stack for AAPCS
> will handle this transparently.  I'll give it a try sometime.

Haven't had a chance to look at that yet.

R.



More information about the Gcc-patches mailing list