Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/vect/vect-mixed-size-cond-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
line wrap: on
line source
/* { dg-do compile } */ int f (unsigned char *restrict x, short *restrict y) { for (int i = 0; i < 100; ++i) { unsigned short a = (x[i] + 11) >> 1; unsigned short b = (x[i] + 42) >> 2; unsigned short cmp = y[i] == 0 ? a : b; int res = cmp + 1; x[i] = res; } }