This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 4.3.4 is casting my QImode vars to SImode for libcall
- From: Ian Lance Taylor <iant at google dot com>
- To: "Paulo J. Matos" <pocmatos at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 14 Jun 2010 11:01:53 -0700
- Subject: Re: GCC 4.3.4 is casting my QImode vars to SImode for libcall
- References: <AANLkTilCT3YmBilM0jzcQpDa5SbOyNfqzFEt3gmJhv_h@mail.gmail.com>
"Paulo J. Matos" <pocmatos@gmail.com> writes:
> In gcc4.3.4, for my architecture: 16 BITS_PER_UNIT, 1 UNIT_PER_WORD,
> with INT_TYPE_SIZE = 16 and FLOAT_TYPE_SIZE = 32, then an unsigned int
> is QImode and a float is HFmode.
>
> However with:
> float uitof(unsigned int x) { return x; }
>
> I get a call to the function __floatunsihf. Shouldn't this be __floatunqihf?
Yes. Something is wrong somewhere, but I don't know where.
Ian