[VECT] pr97929 fix
authorJoel Hutton <joel.hutton@arm.com>
Thu, 10 Dec 2020 11:55:18 +0000 (11:55 +0000)
committerJoel Hutton <joel.hutton@arm.com>
Thu, 10 Dec 2020 11:58:23 +0000 (11:58 +0000)
commitf5b902a9af9d1cce6c540c7f71e02e22e45c23ef
tree692772c73abdef8a9de93968e67e3dfa3b186805
parent703d2ac06fbd228294b0db8d5fcc9a6a894487cc
[VECT] pr97929 fix

This addresses pr97929. The case for WIDEN_PLUS and WIDEN_MINUS were
missing in vect_get_smallest_scalar_type.

gcc/ChangeLog:

PR tree-optimization/97929
* tree-vect-data-refs.c (vect_get_smallest_scalar_type): Add
WIDEN_PLUS/WIDEN_MINUS case.

gcc/testsuite/ChangeLog:

* gcc.dg/vect/pr97929.c: New test.
gcc/testsuite/gcc.dg/vect/pr97929.c [new file with mode: 0644]
gcc/tree-vect-data-refs.c