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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [graphite/] [pr37485.c] - Blame information for rev 298

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-options "-O2 -fdump-tree-graphite-all" } */
2
 
3
typedef unsigned char   UChar;
4
typedef int             Int32;
5
typedef unsigned int    UInt32;
6
 
7
void fallbackSort ( UInt32* fmap,
8
                    UInt32* eclass,
9
                    Int32   nblock,
10
                    Int32   verb )
11
{
12
   Int32 ftab[257];
13
   Int32 ftabCopy[256];
14
   Int32 H, i, j, k, l, r, cc, cc1;
15
   Int32 nNotDone;
16
   Int32 nBhtab;
17
   UChar* eclass8 = (UChar*)eclass;
18
 
19
   if (verb >= 4)
20
      VPrintf0 ( "        bucket sorting ...\n" );
21
   for (i = 0; i < 257;    i++) ftab[i] = 0;
22
   for (i = 0; i < nblock; i++) ftab[eclass8[i]]++;
23
   for (i = 0; i < 256;    i++) ftabCopy[i] = ftab[i];
24
   for (i = 1; i < 257;    i++) ftab[i] += ftab[i-1];
25
 
26
   for (i = 0; i < nblock; i++) {
27
      j = eclass8[i] + ftab [i];
28
   }
29
   AssertH ( j < 256, 1005 );
30
}
31
/* { dg-final { scan-tree-dump-times "Loop blocked" 1 "graphite" { xfail *-*-* }} } */
32
/* { dg-final { cleanup-tree-dump "graphite" } } */

powered by: WebSVN 2.1.0

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