libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-switch-search-line-fast.c
blob15f3a4ef38a7be68d2049ff3eb41a1b2b9f2af67
1 /* PR116126 -- once this works use this version in libcpp/lex.c.
2 This also requires working value range propagation for s/end. */
3 /* { dg-do compile } */
4 /* { dg-require-effective-target vect_int } */
6 const unsigned char *search_line_fast2 (const unsigned char *s,
7 const unsigned char *end)
9 while (s < end) {
10 if (*s == '\n' || *s == '\r' || *s == '\\' || *s == '?')
11 break;
12 s++;
14 return s;
17 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail *-*-* } } } */