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-*-* } } } */ 4 aa_renderpalette(int p)5int aa_renderpalette (int p) 6 { 7 int y = 42; 8 int i; 9 10 for (i = 0; i < 256; i++) 11 { 12 if (y > 255) 13 y = 255; 14 if (y < 0) 15 y = 0; 16 17 if (p) 18 y = (y < p ? 0 : (y > p) * 255 / (255 - 2 * p)); 19 } 20 return y; 21 } 22