Re: [patch] Use straight-line sequence for signed overflow additive operation

2016-10-28 Thread Bernd Schmidt
On 10/27/2016 05:26 PM, Eric Botcazou wrote: as suggested by Segher, this changes the generic signed-signed-signed case of expand_addsub_overflow to using a straight-line code sequence instead of a branchy one, the new sequence being also shorter. * dojump.c (do_jump_by_parts_greater_r

[patch] Use straight-line sequence for signed overflow additive operation

2016-10-27 Thread Eric Botcazou
Hi, as suggested by Segher, this changes the generic signed-signed-signed case of expand_addsub_overflow to using a straight-line code sequence instead of a branchy one, the new sequence being also shorter. On 32-bit PowerPC the code generated at -O2 for 32-bit addition and subtraction is: