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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
/* PR 34808 */
2
/* { dg-do compile }
3
/* { dg-options "-fno-tree-dominator-opts" } */
4
 
5
extern int flags;
6
 
7
struct r { int code; int val;};
8
 
9
int
10
foo (struct r *home)
11
{
12
  int n = 0;
13
  int regno = -1;
14
 
15
  if (home->code == 0)
16
    regno = home->val;
17
 
18
  if (home->code == 1)
19
      bar ();
20
  else if (regno >= 0)
21
    n = (regno == 16
22
         ? 16
23
         : (regno - (unsigned long long) (flags != 0 ? 63 : 15)
24
            ? regno - 128
25
            : -1));
26
 
27
  baz ();
28
  return n;
29
}

powered by: WebSVN 2.1.0

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