PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr78938.c
blob095e674adf5312208b57d618f3b7d69e03214792
1 /* PR tree-optimization/78938 */
2 /* { dg-do compile } */
3 /* { dg-additional-options "-mavx512bw" { target i?86-*-* x86_64-*-* } } */
5 short int v;
7 int
8 foo (char x, int *b)
10 int a = 1;
11 for (; x < 1; x++)
13 int c = *b != v;
14 int d = x != 0;
15 a = c == d ? 2 : 0;
17 return a;