1 /* { dg-require-effective-target vect_condition } */
4 extern void abort (void);
11 for (i
= 0; i
< 64; i
++)
29 for (i
= 0; i
< 64; i
++)
50 for (i
= 0; i
< 64; i
++)
53 if (*s
== ',' || *s
== '|' || *s
== '@' || *s
== '*')
66 for (i
= 0; i
< 64; i
++)
68 if (*s
== ',' || *s
== '|' || *s
== '@' || *s
== '*')
75 #define CHECK(f, str, res) \
76 __builtin_strcpy(buf, str); n = f(buf); if (n != res) abort();
84 __builtin_memset (buf
, 0, sizeof buf
);
88 CHECK (f1
, ",,,,,,,,,,", 10);
89 CHECK (f1
, "||||||||||", 10);
90 CHECK (f1
, "aaaaaaaaaa", 0);
92 CHECK (f1
, ",|,|xxxxxx", 4);
94 CHECK (f2
, ",,,,,,,,,,", 10);
95 CHECK (f2
, "||||||||||", 10);
96 CHECK (f2
, "aaaaaaaaaa", 0);
98 CHECK (f2
, ",|,|xxxxxx", 4);
100 CHECK (f3
, ",,,,,,,,,,", 10);
101 CHECK (f3
, "||||||||||", 10);
102 CHECK (f3
, "aaaaaaaaaa", 0);
104 CHECK (f3
, ",|,|xxxxxx", 4);
106 CHECK (f4
, ",,,,,,,,,,", 10);
107 CHECK (f4
, "||||||||||", 10);
108 CHECK (f4
, "aaaaaaaaaa", 0);
110 CHECK (f4
, ",|,|xxxxxx", 4);
115 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 4 "vect" } } */