Re: [PATCH] fold-const: Fix up fold_truth_andor_1 shift handling [PR103813]

2021-12-28 Thread Jeff Law via Gcc-patches
On 12/28/2021 3:27 AM, Jakub Jelinek wrote: Hi! Some time ago I've changed const_binop -> wide_int_binop, so that it punts on shifts by negative count. fold_truth_andor_1 doesn't check the results of const_binop (?SHIFT_EXPR, ) though and assumes they will be always non-NULL, which is no lon

[PATCH] fold-const: Fix up fold_truth_andor_1 shift handling [PR103813]

2021-12-28 Thread Jakub Jelinek via Gcc-patches
Hi! Some time ago I've changed const_binop -> wide_int_binop, so that it punts on shifts by negative count. fold_truth_andor_1 doesn't check the results of const_binop (?SHIFT_EXPR, ) though and assumes they will be always non-NULL, which is no longer the case. Fixed thusly, bootstrapped/regtest