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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr46909-1.c] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
/* PR tree-optimization/46909 */
2
 
3
extern void abort ();
4
 
5
int
6
__attribute__ ((__noinline__))
7
foo (unsigned int x)
8
{
9
  if (! (x == 4 || x == 6) || (x == 2 || x == 6))
10
    return 1;
11
  return -1;
12
}
13
 
14
int
15
main ()
16
{
17
  int i;
18
  for (i = -10; i < 10; i++)
19
    if (foo (i) != 1 - 2 * (i == 4))
20
      abort ();
21
  return 0;
22
}

powered by: WebSVN 2.1.0

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