1 /* { dg-do run } */
2 /* { dg-options "-O2 -ftree-vectorize -msse2" } */
3 /* { dg-require-effective-target sse2 } */
4
5 #include "sse2-check.h"
6
7 #define N 8
8
9 unsigned int u4[N] = { 4000000000u, 4000000000u, 4000000000u, 4000000000u, 4000000000u, 4000000000u, 4000000000u, 4000000000u };
10 float f4[N];
11
12 static void
sse2_test(void)13 sse2_test (void)
14 {
15 int j;
16
17 for (j = 0; j < N; j++)
18 f4[j] = u4[j];
19
20 /* check results: */
21 for (j = 0; j < N; j++)
22 if (f4[j] != 4000000000.0)
23 abort ();
24 }
25