summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr40809.c
blob: 8b63e5526497ca5badf6ce942c400d0f4773e42d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* { dg-do run } */
/* { dg-options "-O2 -ftree-vectorize -msse2" } */
/* { dg-require-effective-target sse2 } */

#include "sse2-check.h"

#define N 8

unsigned int u4[N] = { 4000000000u, 4000000000u, 4000000000u, 4000000000u, 4000000000u, 4000000000u, 4000000000u, 4000000000u };
float f4[N];

static void
sse2_test (void)
{
  int j;

  for (j = 0; j < N; j++)
    f4[j] = u4[j];

  /* check results:  */
  for (j = 0; j < N; j++)
    if (f4[j] != 4000000000.0)
      abort ();
}