Implement C _FloatN, _FloatNx types.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr50396.c
blobaa17ebdaa842c299b37dbd33b6e1a83f921afed6
1 /* { dg-do run } */
2 /* { dg-add-options ieee } */
4 extern void abort (void);
5 typedef float vf128 __attribute__((vector_size(16)));
6 typedef float vf64 __attribute__((vector_size(8)));
7 int main()
9 #if !__FINITE_MATH_ONLY__
10 #if __FLT_HAS_QUIET_NAN__
11 vf128 v = (vf128){ 0.f, 0.f, 0.f, 0.f };
12 vf64 u = (vf64){ 0.f, 0.f };
13 v = v / (vf128){ 0.f, 0.f, 0.f, 0.f };
14 if (v[0] == v[0])
15 abort ();
16 u = u / (vf64){ 0.f, 0.f };
17 if (u[0] == u[0])
18 abort ();
19 #endif
20 #endif
21 return 0;