PR rtl-optimization/87918
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr40809.c
blob8b63e5526497ca5badf6ce942c400d0f4773e42d
1 /* { dg-do run } */
2 /* { dg-options "-O2 -ftree-vectorize -msse2" } */
3 /* { dg-require-effective-target sse2 } */
5 #include "sse2-check.h"
7 #define N 8
9 unsigned int u4[N] = { 4000000000u, 4000000000u, 4000000000u, 4000000000u, 4000000000u, 4000000000u, 4000000000u, 4000000000u };
10 float f4[N];
12 static void
13 sse2_test (void)
15 int j;
17 for (j = 0; j < N; j++)
18 f4[j] = u4[j];
20 /* check results: */
21 for (j = 0; j < N; j++)
22 if (f4[j] != 4000000000.0)
23 abort ();