OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr32681.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { 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
 
5
int 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.