[NDS32] Add intrinsic functions for TLB operation and data prefech.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr46522.c
blob9e8e08ca7fcf5da6bfbc26a21c4aebe6b19eba1e
1 /* { dg-do compile { target powerpc*-*-* ia64-*-* i?86-*-* x86_64-*-* } } */
2 /* { dg-options "-O3 -fkeep-inline-functions -fsel-sched-pipelining -fselective-scheduling2 -funroll-loops" } */
4 struct S
6 unsigned i, j;
7 };
9 static inline void
10 bar (struct S *s)
12 if (s->i++ == 1)
14 s->i = 0;
15 s->j++;
19 void
20 foo1 (struct S *s)
22 bar (s);
25 void
26 foo2 (struct S s1, struct S s2, int i)
28 while (s1.i != s2.i) {
29 if (i)
30 *(unsigned *) 0 |= (1U << s1.i);
31 bar (&s1);