view gcc/testsuite/gcc.dg/graphite/pr83963-2.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "-O -floop-nest-optimize" } */

int Chv_countBigEntries (int npivot, int pivotsizes[], int countflag,
			 double droptol, int nD)
{
  double absval ;
  double *entries ;
  int count;
  int ii, jj, kinc, kk, kstart, stride ;
  for ( ii = 0 ; ii < nD ; ii++ )
    { 
      kk = kstart ;  
      kinc = stride ;
      for ( jj = 0 ; jj < ii ; jj++ )
	{
	  absval = __builtin_fabs(entries[kk]) ; 
	  if ( absval >= droptol )
	    count++ ;   
	  kk += kinc ;    
	  kinc -= 2 ; 
	}
      kstart-- ;   
    }
  return count;
}