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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20070517-1.c] - Blame information for rev 298

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

Line No. Rev Author Line
1 297 jeremybenn
/* PR rtl-optimization/31691 */
2
/* Origin: Chi-Hua Chen <stephaniechc-gccbug@yahoo.com> */
3
 
4
extern void abort (void);
5
 
6
static int get_kind(int) __attribute__ ((noinline));
7
 
8
static int get_kind(int v)
9
{
10
  volatile int k = v;
11
  return k;
12
}
13
 
14
static int some_call(void) __attribute__ ((noinline));
15
 
16
static int some_call(void)
17
{
18
  return 0;
19
}
20
 
21
static void example (int arg)
22
{
23
  int tmp, kind = get_kind (arg);
24
 
25
  if (kind == 9 || kind == 10 || kind == 5)
26
    {
27
      if (some_call() == 0)
28
        {
29
          if (kind == 9 || kind == 10)
30
            tmp = arg;
31
          else
32
            abort();
33
        }
34
    }
35
}
36
 
37
int main(void)
38
{
39
  example(10);
40
  return 0;
41
}

powered by: WebSVN 2.1.0

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