testsuite: Extend vector() regexp

For variable-length vectors, the N inside “vector(N) T” can
contain the characters ‘[’, ‘]’ and ‘,’.

gcc/testsuite/
	* gcc.dg/vect/pr91750.c: Allow "[]," inside a vector(...) lane count.
This commit is contained in:
Richard Sandiford 2020-11-17 11:12:49 +00:00
parent c51f1e7427
commit 903adc062f

View File

@ -11,5 +11,5 @@ foo (int n)
}
/* Make sure the induction IV uses an unsigned increment. */
/* { dg-final { scan-tree-dump "vector\\\(\[0-9\]*\\\) unsigned int" "vect" } } */
/* { dg-final { scan-tree-dump {vector\([][0-9,]*\) unsigned int} "vect" } } */
/* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */