OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [20050105-1.c] - Blame information for rev 404

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

Line No. Rev Author Line
1 298 jeremybenn
/* PR rtl-optimization/18861 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2" } */
4
 
5
extern void abort (void);
6
 
7
int
8
foo (int code)
9
{
10
  if (code >= 3)
11
    switch (code)
12
      {
13
      case 3: return 4;
14
      case 4: return 3;
15
      case 5: return 6;
16
      case 6: return 7;
17
      case 7: return 8;
18
      case 8: return 5;
19
      default: abort ();
20
      }
21
  switch (code)
22
    {
23
    case 3: return 4;
24
    case 4: return 3;
25
    case 5: return 6;
26
    case 6: return 7;
27
    case 7: return 8;
28
    case 8: return 5;
29
    default: abort ();
30
    }
31
}

powered by: WebSVN 2.1.0

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