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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [tls/] [opt-10.c] - Blame information for rev 154

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

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

powered by: WebSVN 2.1.0

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