2018-05-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr78445.c
blobbb5327b9f705b83b305618feacdcf60f3544ccbc
1 /* PR tree-optimization/78445 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -ftree-loop-if-convert -ftree-vectorize" } */
4 /* { dg-additional-options "-mavx2" { target { i?86-*-* x86_64-*-* } } } */
6 int a;
8 void
9 foo (int x, int *y)
11 while (a != 0)
12 if (x != 0)
14 *y = a;
15 x = *y;
17 else
18 x = a;