tree-optimization/105132 - add missing checking in vectorizable_operation
authorRichard Biener <rguenther@suse.de>
Mon, 4 Apr 2022 08:31:15 +0000 (10:31 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 4 Apr 2022 09:34:25 +0000 (11:34 +0200)
commit3eda57b4ae50b5fe57c174556f1daf3bd9a46b09
tree4b06fc51771ddd8fdd4386eddbb87111f982f517
parenteaaf77dd85c333b116111bb1ae6c080154a4e411
tree-optimization/105132 - add missing checking in vectorizable_operation

The following adds missing verification that the input vectors
have the same number of elements for vectorizable_operation.

2022-04-04  Richard Biener  <rguenther@suse.de>

PR tree-optimization/105132
* tree-vect-stmts.cc (vectorizable_operation): Check that
the input vectors have the same number of elements.

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