]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/119534 - reject bogus emulated vectorized gather
authorRichard Biener <rguenther@suse.de>
Tue, 1 Apr 2025 12:13:03 +0000 (14:13 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 1 Apr 2025 13:23:27 +0000 (15:23 +0200)
commitd0cc14c62ad7403afcab3c2e38851d3ab179352f
tree7333e5e19358702a150956f2df9e08729052b1fa
parente9803f10c9f376f6d091e7ef3ad6e1c92e7c8e8c
tree-optimization/119534 - reject bogus emulated vectorized gather

The following makes sure to reject the attempts to emulate a vector
gather when the discovered index vector type is a vector mask.

PR tree-optimization/119534
* tree-vect-stmts.cc (get_load_store_type): Reject
VECTOR_BOOLEAN_TYPE_P offset vector type for emulated gathers.

* gcc.dg/vect/pr119534.c: New testcase.
gcc/testsuite/gcc.dg/vect/pr119534.c [new file with mode: 0644]
gcc/tree-vect-stmts.cc