------- Comment #1 from rth at gcc dot gnu dot org  2009-12-07 02:35 -------
Shift by >= mode size is undefined at the C language level.
With -Wall, you'll get a warning for that.

At the gimple level, I'm pretty sure we leave it alone, since
we don't really know what else to do with it.

At the rtl level, it's controlled by SHIFT_COUNT_TRUNCATED.
On very few systems is a large shift actually evaluated to zero;
most will evaluate it as "x = y << (count & (bitsizeof(y)-1))".


-- 

rth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42303

Reply via email to