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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [opt/] [pr40496.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options "-O2 -fprefetch-loop-arrays -msse2" { target i?86-*-* x86_64-*-* } }
3
// { dg-require-effective-target sse2 { target i?86-*-* x86_64-*-* } }
4
 
5
struct DOMStringHandle
6
{
7
  unsigned int fLength;
8
  int fRefCount;
9
};
10
static void *freeListPtr;
11
void foo(DOMStringHandle *dsg)
12
{
13
  int i;
14
  for (i = 1; i < 1023; i++)
15
    {
16
      *(void **) &dsg[i] = freeListPtr;
17
      freeListPtr = &dsg[i];
18
    }
19
}

powered by: WebSVN 2.1.0

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