[NDS32] Add intrinsic functions for TLB operation and data prefech.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr36504.c
blobb3db30f4f5cdb2cee97219d20d96e08665582a5d
1 /* PR tree-optimization/36504 */
2 /* { dg-do compile } */
3 /* { dg-options "-O3 -fprefetch-loop-arrays -w" } */
4 /* { dg-additional-options "-march=i686 -msse" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
6 struct A { struct { int a; } b[8]; };
7 struct B { int c; int d; };
8 struct C { struct B d; };
10 void bar (struct C *, int);
12 struct B
13 foo (struct C *p, struct A *e, int b)
15 struct B q;
16 bar (p, e->b[b].a);
17 return q;
20 void
21 baz (int b, struct A *e)
23 struct C p;
24 for (; b; ++b)
25 p.d = foo (&p, e, b);