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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [sparc/] [sparc-align-1.c] - Blame information for rev 753

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

Line No. Rev Author Line
1 691 jeremybenn
/* PR target/31100 */
2
/* Reported by Erwin Unruh <Erwin.Unruh@fujitsu-siemens.com> */
3
 
4
/* { dg-do run } */
5
/* { dg-options "-falign-labels=16" } */
6
 
7
extern void abort(void);
8
 
9
int f(int i)
10
{
11
  int res;
12
 
13
  switch (i)
14
    {
15
    case 5:
16
      res = i - i;
17
      break;
18
    default:
19
      res = i * 2;
20
      break;
21
    }
22
 
23
  return res;
24
}
25
 
26
int main(void)
27
{
28
  if (f(2) != 4)
29
    abort ();
30
  return 0;
31
}

powered by: WebSVN 2.1.0

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