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.dg/] [tree-ssa/] [pr23115.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-O2 -ftree-vectorize" } */
3
 
4
extern void abort (void);
5
 
6
#define MIN2(a,b) (((a)<(b)) ? (a) : (b))
7
#define MAX2(a,b) (((a)>(b)) ? (a) : (b))
8
 
9
double p[2] = { 4., 5. };
10
 
11
int main()
12
{
13
  long j;
14
  double R, n, x;
15
#if __SIZEOF_DOUBLE__ >= 8
16
  n = 1.e300;
17
  x = -1.e300;
18
#else
19
  n = 1.e30;
20
  x = -1.e30;
21
#endif
22
  for( j=0; j < 2; j++ )
23
    {
24
      x = MAX2(x,p[j]);
25
      n = MIN2(n,p[j]);
26
    }
27
  R = x-n;
28
 
29
  if( R < 0.1 )
30
      abort ();
31
 
32
  return 0;
33
}

powered by: WebSVN 2.1.0

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