https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122126
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Another testcase but with `-O2 -mavx2 -fno-tree-dse -fno-tree-dce`:
```
#define vect16 __attribute__((vector_size(16)))
void sink(void*);
vect16 unsigned func_54(vect16 unsigned BS_VAR_0, int t, int l) {
BS_VAR_0[12] = 4;
return BS_VAR_0;
}
```
If nobody gets to it by the next week, I will look into the fix. Should be
simple as saying:
if (TREE_CODE (x) == INTEGER_CST &&
(!tree_fits_uhwi_p (x)
|| tree_to_uhwi (x) < TYPE_VECTOR_SUBPARTS (type_y)))
reject;
Or something similar since TYPE_VECTOR_SUBPARTS might be not be a constant.