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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr47157.c] - Blame information for rev 688

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
/* PR rtl-optimization/47157 */
2
 
3
struct S { unsigned a; unsigned b; } c = { 1, 0 };
4
unsigned long int e;
5
void bar (int);
6
int baz (void);
7
 
8
static int
9
foo (int x, short y)
10
{
11
  return ((x ^ y) & ((x ^ (x ^ y) & ~__INT_MAX__) - y ^ y)) < 0 ? x : x - y;
12
}
13
 
14
void
15
test (void)
16
{
17
  bar (foo (baz () != (c.a | c.b), -1L));
18
  for (e = 0; e; e = 1)
19
    ;
20
}

powered by: WebSVN 2.1.0

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