Add _FloatN, _FloatNx tests for __builtin_fpclassify.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr57748-3.c
blob5ddb6099c2cd57f2acdc852affb55b7b94aebbeb
1 /* PR middle-end/57748 */
2 /* { dg-do run } */
3 /* wrong code in expand_expr_real_1. */
5 #include <stdlib.h>
7 extern void abort (void);
9 typedef long long V
10 __attribute__ ((vector_size (2 * sizeof (long long)), may_alias));
12 typedef struct S { V a; V b[0]; } P __attribute__((aligned (1)));
14 struct __attribute__((packed)) T { char c; P s; };
16 void __attribute__((noinline, noclone))
17 check (P *p)
19 if (p->b[0][0] != 3 || p->b[0][1] != 4)
20 abort ();
23 void __attribute__((noinline, noclone))
24 foo (struct T *t)
26 V a = { 3, 4 };
27 t->s.b[0] = a;
30 int
31 main ()
33 struct T *t = (struct T *) calloc (128, 1);
35 foo (t);
36 check (&t->s);
38 free (t);
39 return 0;