This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Irix calling conventions for complex numbers


> A little experimentation suggests that complex numbers are not 
> beings passed or returned to IRIX libc functions such as cpow{,f,l}.
> (I will put together some examples id anyone is interested)

I'm interested. I imagine Richard is too.

> Where in gcc do I look to see if this is the case?

 if (GET_MODE_CLASS (mode) == MODE_COMPLEX_FLOAT
      && GET_MODE_SIZE (mode) <= UNITS_PER_HWFPVALUE * 2)
    return mips_return_fpr_pair (mode,
                                 GET_MODE_INNER (mode), 0,
                                 GET_MODE_INNER (mode),
                                 GET_MODE_SIZE (mode) / 2);

from mips_function_value.

-eric

-- 
Eric Christopher <echristo@redhat.com>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]