Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr78445.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
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-*-* } } } */ | |
5 | |
6 int a; | |
7 | |
8 void | |
9 foo (int x, int *y) | |
10 { | |
11 while (a != 0) | |
12 if (x != 0) | |
13 { | |
14 *y = a; | |
15 x = *y; | |
16 } | |
17 else | |
18 x = a; | |
19 } |