Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/torture/pr82603.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-additional-options "-ftree-loop-vectorize" } */ | |
3 | |
4 int | |
5 mr (unsigned int lf, int ms) | |
6 { | |
7 unsigned int sw = 0; | |
8 char *cu = (char *)&ms; | |
9 | |
10 while (ms < 1) | |
11 { | |
12 if (lf == 0) | |
13 ms = 0; | |
14 else | |
15 ms = 0; | |
16 ms += ((lf > 0) && ((lf > sw) ? 1 : ++*cu)); | |
17 } | |
18 | |
19 if (lf != 0) | |
20 cu = (char *)&sw; | |
21 *cu = lf; | |
22 | |
23 return ms; | |
24 } |