[Bug tree-optimization/122778] SIMD clone vectorization with AVX512 fails to implement loop masking

2025-11-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122778

Richard Biener  changed:

   What|Removed |Added

  Known to work||16.0
 Depends on||122736

--- Comment #3 from Richard Biener  ---
Fixed on trunk sofar, possibly backportable, but not w/o 122736.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122736
[Bug 122736] loop masking with SIMD clones ICEs in vect_verify_full_masking

[Bug tree-optimization/122778] SIMD clone vectorization with AVX512 fails to implement loop masking

2025-11-21 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122778

--- Comment #2 from GCC Commits  ---
The master branch has been updated by Richard Biener :

https://gcc.gnu.org/g:a4d34605db6de69356b1f3fb05dae9856b0b8413

commit r16-5490-ga4d34605db6de69356b1f3fb05dae9856b0b8413
Author: Richard Biener 
Date:   Fri Nov 21 10:32:12 2025 +0100

tree-optimization/122778 - missed loop masking in OMP SIMD call handling

For AVX512 style masking we fail to apply loop masking to a conditional
OMP SIMD call.

PR tree-optimization/122778
* tree-vect-stmts.cc (vectorizable_simd_clone_call): Honor
a loop mask when passing the conditional mask with AVX512
style masking.

* gcc.dg/vect/vect-simd-clone-22.c: New testcase.
* gcc.dg/vect/vect-simd-clone-22a.c: Likewise.

[Bug tree-optimization/122778] SIMD clone vectorization with AVX512 fails to implement loop masking

2025-11-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122778

Richard Biener  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
 Ever confirmed|0   |1
   Keywords||wrong-code
   Last reconfirmed||2025-11-21
   Assignee|unassigned at gcc dot gnu.org  |rguenth at gcc dot 
gnu.org

--- Comment #1 from Richard Biener  ---
I have a patch.