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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr49039.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 688 jeremybenn
/* PR tree-optimization/49039 */
2
extern void abort (void);
3
int cnt;
4
 
5
__attribute__((noinline, noclone)) void
6
foo (unsigned int x, unsigned int y)
7
{
8
  unsigned int minv, maxv;
9
  if (x == 1 || y == -2U)
10
    return;
11
  minv = x < y ? x : y;
12
  maxv = x > y ? x : y;
13
  if (minv == 1)
14
    ++cnt;
15
  if (maxv == -2U)
16
    ++cnt;
17
}
18
 
19
int
20
main ()
21
{
22
  foo (-2U, 1);
23
  if (cnt != 2)
24
    abort ();
25
  return 0;
26
}

powered by: WebSVN 2.1.0

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