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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [sms-2.c] - Blame information for rev 708

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

Line No. Rev Author Line
1 689 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
int th, h, em, nlwm, nlwS, nlw, sy;
8
void
9
fun (nb)
10
     int nb;
11
{
12
 
13
  while (nb--)
14
    while (h--)
15
      {
16
        nlw = nlwm;
17
        while (nlw)
18
          {
19
            if (nlwS == 1)
20
              {
21
              }
22
            else
23
              if (nlwS == 1)
24
                {
25
                }
26
            nlwS--; nlw--;
27
          }
28
        if (em)
29
          nlwS--;
30
        if (++sy == th)
31
          sy = 0;
32
      }
33
}
34
 
35
/* { dg-final { scan-rtl-dump-times "SMS loop many exits" 1 "sms" { target spu-*-* powerpc*-*-* } } } */
36
/* { 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.