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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tls/] [pr45870.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR target/45870 */
2
/* { dg-do compile } */
3
/* { dg-options "-g -O" } */
4
/* { dg-require-effective-target tls } */
5
 
6
__thread int v[30];
7
int bar (void);
8
 
9
int
10
foo (int x, int y, int z)
11
{
12
  int a, b = z, c;
13
  while (b > 0)
14
    {
15
      c = (bar () % 3);
16
      a = v[x];
17
      if (x < y)
18
        for (;;);
19
      b += a;
20
    }
21
}

powered by: WebSVN 2.1.0

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