[Bug tree-optimization/121049] [15 regression] timezone-data miscompiled with -O3 -march=x86-64-v4 -mtune=znver4 since r16-1729-ga0af6fd825d533

2025-07-18 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121049

Richard Biener  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #19 from Richard Biener  ---
Fixed.

[Bug tree-optimization/121049] [15 regression] timezone-data miscompiled with -O3 -march=x86-64-v4 -mtune=znver4 since r16-1729-ga0af6fd825d533

2025-07-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121049

--- Comment #18 from GCC Commits  ---
The releases/gcc-15 branch has been updated by Richard Biener
:

https://gcc.gnu.org/g:185a8bae0f2ce46c65ec6a541c2fe7299df6d7f4

commit r15-10001-g185a8bae0f2ce46c65ec6a541c2fe7299df6d7f4
Author: Richard Biener 
Date:   Wed Jul 16 15:07:58 2025 +0200

tree-optimization/121049 - avoid loop masking with even/odd reduction

The following disables loop masking when we are using an even/odd
widening operation in a reduction because the loop mask then aligns
to the wrong elements.

PR tree-optimization/121049
* internal-fn.h (widening_evenodd_fn_p): Declare.
* internal-fn.cc (widening_evenodd_fn_p): New function.
* tree-vect-stmts.cc (vectorizable_conversion): When using
an even/odd widening function disable loop masking.

* gcc.dg/vect/pr121049.c: New testcase.

(cherry picked from commit bc5570f7ef796fa7f5ab89b34ed9de2be5299f0e)

[Bug tree-optimization/121049] [15 regression] timezone-data miscompiled with -O3 -march=x86-64-v4 -mtune=znver4 since r16-1729-ga0af6fd825d533

2025-07-16 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121049

Richard Biener  changed:

   What|Removed |Added

  Known to work||16.0
Summary|[16 regression] |[15 regression]
   |timezone-data miscompiled   |timezone-data miscompiled
   |with -O3 -march=x86-64-v4   |with -O3 -march=x86-64-v4
   |-mtune=znver4 since |-mtune=znver4 since
   |r16-1729-ga0af6fd825d533|r16-1729-ga0af6fd825d533
   Priority|P3  |P2
   Target Milestone|16.0|15.2

--- Comment #17 from Richard Biener  ---
Fixed on trunk.  As bisection shows the issue is latent on the 15 branch at
least.