From: Richard Sandiford Date: Tue, 17 Nov 2020 11:12:49 +0000 (+0000) Subject: testsuite: Extend vector() regexp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=903adc062f28b8d7f5ed77ee104b51bf36448a28;p=gcc.git 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. --- diff --git a/gcc/testsuite/gcc.dg/vect/pr91750.c b/gcc/testsuite/gcc.dg/vect/pr91750.c index fe914b2d939..3586f1168ae 100644 --- a/gcc/testsuite/gcc.dg/vect/pr91750.c +++ b/gcc/testsuite/gcc.dg/vect/pr91750.c @@ -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" } } */