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/] [pr24309.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -ftree-loop-linear" } */
3
 
4
float weight[10];
5
void lsp_weight_quant(float *x, char *cdbk)
6
{
7
   int i,j;
8
   float dist;
9
   int best_id=0;
10
   for (i=0;i<16;i++)
11
   {
12
      for (j=0;j<10;j++)
13
         dist=dist+weight[j];
14
      if (dist<0)
15
         best_id=i;
16
   }
17
   x[j] = cdbk[best_id*10+j];
18
}

powered by: WebSVN 2.1.0

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