2011/7/13 Jakub Jelinek <ja...@redhat.com>:
>
> I disagree.  Widening would result in worse code in most cases, as you need
> to sign extend all the operands.  On the other side, I doubt you can
> actually usefully use the undefinedness of signed overflow for a series of
> 3 or more operands of the associative operation.
>
>        Jakub
>

Sounds reasonable. Type casting to unsigned should be a better solution here.

Ilya

Reply via email to