OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [20050524-1.c] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
/* This test case used to abort due to a reload bug with
2
   elimination offsets.  */
3
 
4
/* { dg-do run { target s390*-*-* } } */
5
/* { dg-options "-O2 -mpacked-stack" } */
6
 
7
extern void abort (void);
8
 
9
double bar (double) __attribute__ ((noinline));
10
double bar (double x) { return x; }
11
 
12
double
13
foo (int j, double f0, double f2, double f4, double f6, double x) __attribute__ ((noinline));
14
 
15
double
16
foo (int j, double f0, double f2, double f4, double f6, double x)
17
{
18
  if (j)
19
    return bar (x) + 4.0;
20
  else
21
    return bar (x);
22
}
23
 
24
int
25
main (void)
26
{
27
  if (foo (0, 0, 0, 0, 0, 10) != 10)
28
    abort ();
29
  if (foo (1, 0, 0, 0, 0, 10) != 14)
30
    abort ();
31
 
32
  return 0;
33
}
34
 

powered by: WebSVN 2.1.0

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