]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/pr63914.c
replace ISL with isl
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr63914.c
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-*-* } } } */
6
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)
13 {
14 return (__attribute__ ((__vector_size__ (4 * sizeof 0))) float){ p1 };
15 }
16 __m128
17 fn2 (float p1)
18 {
19 return fn1 (p1);
20 }
21 struct dt_interpolation
22 {
23 int width;
24 };
25 void
26 fn3 (struct dt_interpolation *p1, int *p2)
27 {
28 int i = 0, n = 0;
29 while (i < 2 * p1->width)
30 n = i++;
31 *p2 = n;
32 }
33 void
34 fn4 ()
35 {
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++)
42 {
43 for (; c.width;)
44 f = a;
45 h = f;
46 }
47 d = h * g;
48 }