2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr63914.c
blob8bf18b3df2c5bd440d0d27bf1c38853537096bb3
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ffast-math" } */
3 /* { dg-prune-output "non-standard ABI extension" } */
4 /* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
5 /* { dg-additional-options "-msse" { target { i?86-*-* x86_64-*-* } } } */
7 typedef float __m128 __attribute__ ((__vector_size__ (16)));
8 __m128 a, d, e;
9 int b;
10 struct dt_interpolation c;
11 __m128
12 fn1 (float p1)
14 return (__attribute__ ((__vector_size__ (4 * sizeof 0))) float){ p1 };
16 __m128
17 fn2 (float p1)
19 return fn1 (p1);
21 struct dt_interpolation
23 int width;
25 void
26 fn3 (struct dt_interpolation *p1, int *p2)
28 int i = 0, n = 0;
29 while (i < 2 * p1->width)
30 n = i++;
31 *p2 = n;
33 void
34 fn4 ()
36 __m128 f;
37 fn3 (&c, &b);
38 __m128 g = fn2 (1.f / b);
39 e = (__m128){};
40 __m128 h = e;
41 for (int i = 0; i < 2 * c.width; i++)
43 for (; c.width;)
44 f = a;
45 h = f;
47 d = h * g;