Re: [PATCH] Fix match.pd ICEs on COMPLEX_CSTs (PR middle-end/84834)

2018-03-13 Thread Richard Biener
On Mon, 12 Mar 2018, Jakub Jelinek wrote: > Hi! > > The following two match.pd spots assume that integer_pow2p will return > true only for INTEGER_CSTs (it uses wi::to_wide on it), but as the testcase > shows, that is not always the case, we can get there with COMPLEX_CSTs. > > Fixed by requirin

[PATCH] Fix match.pd ICEs on COMPLEX_CSTs (PR middle-end/84834)

2018-03-12 Thread Jakub Jelinek
Hi! The following two match.pd spots assume that integer_pow2p will return true only for INTEGER_CSTs (it uses wi::to_wide on it), but as the testcase shows, that is not always the case, we can get there with COMPLEX_CSTs. Fixed by requiring that it is both INTEGER_CST and integer_pow2p, bootstra