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/] [sms-2.c] - Blame information for rev 316

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

Line No. Rev Author Line
1 298 jeremybenn
/* The same test as 921011-1.c.  It can fails on gcc 4.1 due to a dfs
2
   traversal of the loops after versioning.  */
3
 
4
/* { dg-do compile } */
5
/* { dg-options "-O2 -fmodulo-sched -fdump-rtl-sms" } */
6
 
7
 
8
void
9
fun (nb)
10
     int nb;
11
{
12
  int th, h, em, nlwm, nlwS, nlw, sy;
13
 
14
  while (nb--)
15
    while (h--)
16
      {
17
        nlw = nlwm;
18
        while (nlw)
19
          {
20
            if (nlwS == 1)
21
              {
22
              }
23
            else
24
              if (nlwS == 1)
25
                {
26
                }
27
            nlwS--; nlw--;
28
          }
29
        if (em)
30
          nlwS--;
31
        if (++sy == th)
32
          sy = 0;
33
      }
34
}
35
 
36
/* { dg-final { scan-rtl-dump-times "SMS succeeded" 1 "sms" { target spu-*-* powerpc*-*-* } } } */
37
/* { dg-final { cleanup-rtl-dump "sms" } } */

powered by: WebSVN 2.1.0

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