Mercurial > hg > CbC > CbC_gcc
view 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 |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-additional-options "-ftree-loop-vectorize" } */ int mr (unsigned int lf, int ms) { unsigned int sw = 0; char *cu = (char *)&ms; while (ms < 1) { if (lf == 0) ms = 0; else ms = 0; ms += ((lf > 0) && ((lf > sw) ? 1 : ++*cu)); } if (lf != 0) cu = (char *)&sw; *cu = lf; return ms; }