PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr32681.c
blob2352342443b7b78a7c76561f9cfc8cdc25f3a31d
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -ffast-math -ftree-vectorize" } */
3 /* { dg-options "-O3 -ffast-math -ftree-vectorize -march=nocona" { target { i?86-*-* x86_64-*-* } } } */
5 int aa_renderpalette (int p)
7 int y = 42;
8 int i;
10 for (i = 0; i < 256; i++)
12 if (y > 255)
13 y = 255;
14 if (y < 0)
15 y = 0;
17 if (p)
18 y = (y < p ? 0 : (y > p) * 255 / (255 - 2 * p));
20 return y;