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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [arm/] [headmerge-2.c] - Blame information for rev 764

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

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile }  */
2
/* { dg-options "-O2" }  */
3
/* { dg-final { scan-assembler-times "120\n" 1 } } */
4
 
5
extern void foo1 (int);
6
extern void foo2 (int);
7
extern void foo3 (int);
8
extern void foo4 (int);
9
extern void foo5 (int);
10
extern void foo6 (int);
11
 
12
void t (int x, int y)
13
{
14
  switch (y)
15
    {
16
    case 1:
17
      foo1 (120);
18
      break;
19
    case 5:
20
      foo2 (120);
21
      break;
22
    case 7:
23
      foo3 (120);
24
      break;
25
    case 10:
26
      foo4 (120);
27
      break;
28
    case 13:
29
      foo5 (120);
30
      break;
31
    default:
32
      foo6 (120);
33
      break;
34
    }
35
}

powered by: WebSVN 2.1.0

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