Re: [PATCH] tree-ssa-math-opts: Fix up convert_{mult, plusminus}_to_widen [PR113759]

2024-02-06 Thread Richard Biener
On Tue, 6 Feb 2024, Jakub Jelinek wrote: > Hi! > > On the following testcase we emit invalid stmt: > error: type mismatch in ?widen_mult_plus_expr? > 6 | foo (int c, int b) > | ^~~ > unsigned long > int > unsigned int > unsigned long > _31 = WIDEN_MULT_PLUS_EXPR ; > > The recent

[PATCH] tree-ssa-math-opts: Fix up convert_{mult, plusminus}_to_widen [PR113759]

2024-02-06 Thread Jakub Jelinek
Hi! On the following testcase we emit invalid stmt: error: type mismatch in ‘widen_mult_plus_expr’ 6 | foo (int c, int b) | ^~~ unsigned long int unsigned int unsigned long _31 = WIDEN_MULT_PLUS_EXPR ; The recent PR113560 r14-8680 changes tweaked convert_mult_to_widen, but didn't