* gcc.target/i386/pr70021.c: Add -mtune=skylake.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr44223.c
blob9f134e72348dd1456623d5c70b7618fbaa22d457
1 /* PR debug/44223 */
2 /* { dg-do compile { target fpic } } */
3 /* { dg-options "-O3 -fsched-pressure -fschedule-insns -fpic -march=core2 -g" } */
5 struct S { unsigned int s1; int s2; };
6 struct T { int t; };
8 extern void extfn (struct S *);
10 static inline void
11 foo (struct S *s, unsigned char *x, int y)
13 s->s2 = 32;
16 static inline void
17 bar (struct S *s, int n, unsigned int x)
19 unsigned int s1;
20 int s2;
21 s1 = s->s1;
22 s2 = s->s2;
23 if (n < s2)
24 s1 = (s1 << n) | x;
25 s->s1 = s1;
28 int
29 baz (struct T *u, unsigned char *v, int w)
31 struct S y;
32 foo (&y, v, 7);
33 bar (&y, 12, 0xfff);
34 bar (&y, 2, u->t);
35 extfn (&y);