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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr47148.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/47148 */
2
 
3
static inline unsigned
4
bar (unsigned x, unsigned y)
5
{
6
  if (y >= 32)
7
    return x;
8
  else
9
    return x >> y;
10
}
11
 
12
static unsigned a = 1, b = 1;
13
 
14
static inline void
15
foo (unsigned char x, unsigned y)
16
{
17
  if (!y)
18
    return;
19
  unsigned c = (0x7000U / (x - 2)) ^ a;
20
  unsigned d = bar (a, a);
21
  b &= ((a - d) && (a - 1)) + c;
22
}
23
 
24
int
25
main (void)
26
{
27
  foo (1, 1);
28
  foo (-1, 1);
29
  if (b && ((unsigned char) -1) == 255)
30
    __builtin_abort ();
31
  return 0;
32
}

powered by: WebSVN 2.1.0

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