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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run } */
2
 
3
extern void exit(int);
4
extern void abort();
5
void foo (int e1)
6
{
7
  if (e1 < 0)
8
    {
9
      e1 = -e1;
10
      if (e1 >>= 4)
11
        {
12
          if (e1 >= 1 << 5)
13
            exit(0);
14
        }
15
    }
16
}
17
 
18
int main()
19
{
20
  foo(-(1<<9));
21
  abort();
22
}

powered by: WebSVN 2.1.0

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