Re: [PATCH] PR tree-optimization/104420: Fix checks for constant folding X*0.0

2022-02-09 Thread Richard Biener via Gcc-patches
On Wed, Feb 9, 2022 at 12:20 AM Roger Sayle wrote: > > > This patch resolves PR tree-optimization/104420, which is a P1 regression > where, as observed by Jakub Jelinek, the conditions for constant folding > x*0.0 are incorrect (following my patch for PR tree-optimization/96392). > The multiplicat

[PATCH] PR tree-optimization/104420: Fix checks for constant folding X*0.0

2022-02-08 Thread Roger Sayle
This patch resolves PR tree-optimization/104420, which is a P1 regression where, as observed by Jakub Jelinek, the conditions for constant folding x*0.0 are incorrect (following my patch for PR tree-optimization/96392). The multiplication x*0.0 may yield a negative zero result, -0.0, if X is negat