testsuite: Extend vector() regexp
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 17 Nov 2020 11:12:49 +0000 (11:12 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 17 Nov 2020 11:12:49 +0000 (11:12 +0000)
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.

gcc/testsuite/gcc.dg/vect/pr91750.c

index fe914b2d93954fbc2514df2afc140063de20217b..3586f1168ae19cf9ec41a19db6ef767c193f0365 100644 (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" } } */