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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [cswtch-2.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-switchconv" } */
3
 
4
typedef enum { a = 5, b = 6, c = 7, d = 8, e = 9 } X;
5
 
6
int h1 (X x)
7
{
8
  switch (x) {
9
  case a:
10
  case b:
11
  case c:
12
  case d:
13
  case e:
14
    return 1;
15
  default:
16
    return 0;
17
    }
18
}
19
 
20
/* { dg-final { scan-tree-dump-times "CSWTCH" 0 "switchconv" } } */
21
/* { dg-final { cleanup-tree-dump "switchconv" } } */

powered by: WebSVN 2.1.0

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