This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] [RFC] loop index promotion pass


On Wed, 2009-05-20 at 19:03 +0200, Zdenek Dvorak wrote:

> However, the expression
> (i * w) + j could wrap (and in fact, it will, assuming 16-bit short int),

Only if the result is assigned to a 16-bit short int.  Otherwise it will
only wrap if the promoted version also wraps (arithmetic is done on
ints, not shorts).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]