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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr23115.c] - Rev 12

Compare with Previous | Blame | View Log

/* { dg-do run } */
/* { dg-options "-O2 -ftree-vectorize" } */
 
extern void abort (void);
 
#define MIN2(a,b) (((a)<(b)) ? (a) : (b))
#define MAX2(a,b) (((a)>(b)) ? (a) : (b))
 
double p[2] = { 4., 5. };
 
int main()
{
  long j;
  double R, n, x;
 
  n = 1.e300;
  x = -1.e300;
  for( j=0; j < 2; j++ )
    {
      x = MAX2(x,p[j]);
      n = MIN2(n,p[j]);
    }
  R = x-n;
 
  if( R < 0.1 )
      abort ();
 
  return 0;
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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