http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49088
H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #24315|0 |1 is obsolete| | --- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> 2011-05-21 13:25:10 UTC --- Created attachment 24318 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24318 A new patch For binary operations, if X is narrower than MODE and we want all the bits in X's mode, just use the operand when it is CONST_INT.