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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr23115.c] - Rev 154

Go to most recent revision | 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;
}
 

Go to most recent revision | 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.