tree-optimization/112818 - re-instantiate vector type size check for bswap
commit80d67d8f682a6050a3bf4dcfa18a83f321986f2a
authorRichard Biener <rguenther@suse.de>
Mon, 4 Dec 2023 11:50:36 +0000 (4 12:50 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 4 Dec 2023 13:26:12 +0000 (4 14:26 +0100)
tree036b55aa7a01081ba1554f1acbcfed51a74aa094
parent969d4e25e7dccaf9f3a32126545b73725b5b455d
tree-optimization/112818 - re-instantiate vector type size check for bswap

For __builtin_bswap vectorization we still require an equal vector
type size.  Re-instantiate that check.

PR tree-optimization/112818
* tree-vect-stmts.cc (vectorizable_bswap): Check input and
output vector types have the same size.

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