This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Enhance testsuite c-torture test
- From: law at redhat dot com
- To: "David S. Miller" <davem at redhat dot com>
- Cc: dave at hiauly1 dot hia dot nrc dot ca, gcc-patches at gcc dot gnu dot org
- Date: Fri, 10 May 2002 17:27:02 -0600
- Subject: Re: Enhance testsuite c-torture test
- Reply-to: law at redhat dot com
In message <20020510.154104.46189496.davem@redhat.com>, "David S. Miller"
writes:
> From: "John David Anglin" <dave@hiauly1.hia.nrc.ca>
> /* HP only has signed conversion in library, so need to synthesize an
> unsigned version */
> unsigned int
> _U_Qfcnvfxt_quad_to_usgl(long double a)
> {
> extern long long _U_Qfcnvfxt_quad_to_dbl (long double a);
> return (unsigned int) _U_Qfcnvfxt_quad_to_dbl (a);
> }
>
> I'm assuming that the call to the HP library got converted into
> a sibling call.
>
> Anyways, we're calling it with (long double)(1 << 63) as the argument.
>
> Any ideas Jeff? Looks like an HP library bug to me. But also it also
> looks like the "long long" return from the HP library shouldn't be
> chopped off to an unsigned int here, why is that done?
I don't recall.
jeff