OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr44858.c] - Blame information for rev 414

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 414 jeremybenn
/* PR rtl-optimization/44858 */
2
 
3
extern void abort (void);
4
int a = 3;
5
int b = 1;
6
 
7
__attribute__((noinline)) long long
8
foo (int x, int y)
9
{
10
  return x / y;
11
}
12
 
13
__attribute__((noinline)) int
14
bar (void)
15
{
16
  int c = 2;
17
  c &= foo (1, b) > b;
18
  b = (a != 0) | c;
19
  return c;
20
}
21
 
22
int
23
main (void)
24
{
25
  if (bar () != 0 || b != 1)
26
    abort ();
27
  return 0;
28
}

powered by: WebSVN 2.1.0

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