[parisc-linux] Re: Fwd: Re: Any hppa gurus?

Carlos O'Donell Jr. carlos@baldric.uwo.ca
Sat, 30 Mar 2002 10:47:24 -0500


> 
> So, are the first four floats/doubles in an arg list always passed in 
> registers?
> 
> How about func(int, float, int, double, int, float)?
> 
>

A float fits into a single fr register.
A double fits into two fr registers (fr7 (uses fr6),fr5 (uses fr4)) 


	int    gr26 - fr7    ===
	===    gr25 - fr6    ===
	int    gr24 - fr5    float
	===    gr23 - fr4    ===

I wonder what happens if the call was int,int,float... and if that
would make a difference :)

/me goes to check

Hrmm...

        int    gr26 - fr7    ===
        int    gr25 - fr6    float
        ===    gr24 - fr5    === 
        ===    gr23 - fr4    ===

Not sure why that doesn't happen in the first example. Though 
I am no guru at this :)

Any help from more knowledgable parties would be helpful.

c.