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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr49994-3.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fsched2-use-superblocks -g" } */
3
/* { dg-options "-O2 -fsched2-use-superblocks -g -mbackchain" { target s390*-*-* } } */
4
/* { dg-require-effective-target scheduling } */
5
/* { dg-skip-if "PR testsuite/50722" { ia64-*-*-* hppa*-*-* *-*-hpux* } } */
6
 
7
void *
8
foo (int offset)
9
{
10
  switch (offset)
11
    {
12
    case 0:
13
      return __builtin_return_address (0);
14
    case 1:
15
      return __builtin_return_address (1);
16
    case 2:
17
      return __builtin_return_address (2);
18
    case 3:
19
      return __builtin_return_address (3);
20
    case 4:
21
      return __builtin_return_address (4);
22
    }
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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