On Tue, 2012-11-20 at 09:00 +0000, Jeremy Bennett wrote: 
> On Tue, 2012-11-20 at 09:28 +0100, Jonas Bonn wrote: 
> > On Tue, 2012-11-20 at 08:11 +0000, Jeremy Bennett wrote:
> > > On Tue, 2012-11-20 at 08:50 +0100, Jonas Bonn wrote: 
> > > > 
> > > > This means we put X in r3 going into the function call and get X in r11
> > > > coming out... what's the point?

Hi Jonas,

I asked Joern, who pointed out that in other circumstances, it is
convenient not to have register conflicts between incoming arguments and
the outgoing result.

Apparently the Renesas SH family has r0 as the result register, with
argument registers starting at r4, except for the 64-bit ABI, where both
start at r2.

So it looks like there isn't a simple answer.

Best wishes,


Jeremy

-- 
Tel:      +44 (1590) 610184
Cell:     +44 (7970) 676050
SkypeID: jeremybennett
Email:   [email protected]
Web:     www.embecosm.com

_______________________________________________
OpenRISC mailing list
[email protected]
http://lists.openrisc.net/listinfo/openrisc

Reply via email to