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/] [tls/] [opt-10.c] - Blame information for rev 300

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-require-effective-target fpic } */
3
/* { dg-options "-O3 -fpic" } */
4
/* { dg-require-effective-target tls } */
5
 
6
/* The web pass was creating unrecognisable pic_load_dot_plus_four insns
7
   on ARM.  */
8
 
9
__thread int a_thread_local;
10
void *
11
spin (int n)
12
{
13
  int i;
14
  for (i = 0; i <= n; i++)
15
    {
16
      a_thread_local += i;
17
    }
18
}

powered by: WebSVN 2.1.0

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