GCC 4.3.4 is casting my QImode vars to SImode for libcall
Paulo J. Matos
pocmatos@gmail.com
Tue Jun 15 08:58:00 GMT 2010
On Mon, Jun 14, 2010 at 7:01 PM, Ian Lance Taylor <iant@google.com> wrote:
> "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.
>
Thanks for confirming this. I will look into it. Fortunately Joseph
Myers provided an insight of where the problem might be.
Cheers,
--
PMatos
More information about the Gcc
mailing list