[Bug target/78176] [MIPS] miscompiles ldxc1 with large pointers on 32-bits
ebotcazou at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Nov 3 17:20:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78176
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ebotcazou at gcc dot gnu.org
--- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> The issue may stem from the C front end where the dumps start off as below.
> Note that the '-1' in kappa-1 has ended up being represented as 1073741823
> (0x3fffffff) presumably owing to the fact it will be multiplied by 4
> eventually and hence be 'safe'.
All pointer calculations are done in sizetype and it is unsigned. This kind of
issues generally come from the RTL level, maybe expansion here.
More information about the Gcc-bugs
mailing list