PowerPC wrong integers on host (was Re: PowerPC `rlwinm' codegenbug )
Tue Jan 5 13:42:00 GMT 1999
On Tue, 5 Jan 1999, David Edelsohn wrote:
: Todd> Humpf. What calculates the mask start, so I can track that down?
: I am not sure what there is to track down. How the compiler you
: used miscompiled that routine?
I finally figured it out, and the compiler did not in fact miscompile the
routine. The C code is wrong.
It seems that all the messing with bitfields in rs6000.c uses HOST_WIDE_INT,
which on my host (Alpha) is NOT 32 bits. This falls under the `DUH!'
I'll submit a patch once I weed it all out... sigh.
-- Todd Vierling (Personal email@example.com; Bus. firstname.lastname@example.org)
More information about the Gcc-bugs