2018-04-30 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr82603.c
blob960a48bbd3a5aed58b5296e87bbea609dcc911c2
1 /* { dg-do compile } */
2 /* { dg-additional-options "-ftree-loop-vectorize" } */
4 int
5 mr (unsigned int lf, int ms)
7 unsigned int sw = 0;
8 char *cu = (char *)&ms;
10 while (ms < 1)
12 if (lf == 0)
13 ms = 0;
14 else
15 ms = 0;
16 ms += ((lf > 0) && ((lf > sw) ? 1 : ++*cu));
19 if (lf != 0)
20 cu = (char *)&sw;
21 *cu = lf;
23 return ms;