Re: [PATCH] Fix regression parts of PR58742

2013-10-21 Thread Richard Biener
On Mon, 21 Oct 2013, Jakub Jelinek wrote: > On Mon, Oct 21, 2013 at 01:30:37PM +0200, Richard Biener wrote: > > This fixes a regression introduced in GCC 4.2 after which we no > > longer fold (unsigned) (X /[ex] 4) * 4 to (unsigned) X. > > > > Bootstrapped and tested on x86_64-unknown-linux-gnu,

Re: [PATCH] Fix regression parts of PR58742

2013-10-21 Thread Jakub Jelinek
On Mon, Oct 21, 2013 at 01:30:37PM +0200, Richard Biener wrote: > This fixes a regression introduced in GCC 4.2 after which we no > longer fold (unsigned) (X /[ex] 4) * 4 to (unsigned) X. > > Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk. Don't we want to do the same optim

[PATCH] Fix regression parts of PR58742

2013-10-21 Thread Richard Biener
This fixes a regression introduced in GCC 4.2 after which we no longer fold (unsigned) (X /[ex] 4) * 4 to (unsigned) X. Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk. Richard. 2013-10-21 Richard Biener PR middle-end/58742 * fold-const.c (fold_binary_l