diff options
author | Richard Biener <rguenther@suse.de> | 2024-07-15 13:50:58 +0200 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2024-07-16 10:11:16 +0200 |
commit | a177be05f6952c3f7e62186d2e138d96c475b81a (patch) | |
tree | 61a0ce74d41f315fca05f8c1488b4d139c214144 /gcc/tree-vect-loop.cc | |
parent | 1e3aa9c9278db69d4bdb661a750a7268789188d6 (diff) | |
download | gcc-a177be05f6952c3f7e62186d2e138d96c475b81a.zip gcc-a177be05f6952c3f7e62186d2e138d96c475b81a.tar.gz gcc-a177be05f6952c3f7e62186d2e138d96c475b81a.tar.bz2 |
tree-optimization/115843 - fix wrong-code with fully-masked loop and peeling
When AVX512 uses a fully masked loop and peeling we fail to create the
correct initial loop mask when the mask is composed of multiple
components in some cases. The following fixes this by properly applying
the bias for the component to the shift amount.
PR tree-optimization/115843
* tree-vect-loop-manip.cc
(vect_set_loop_condition_partial_vectors_avx512): Properly
bias the shift of the initial mask for alignment peeling.
* gcc.dg/vect/pr115843.c: New testcase.
Diffstat (limited to 'gcc/tree-vect-loop.cc')
0 files changed, 0 insertions, 0 deletions