summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/vectorize7.c
blob: 10b7ba27868abdf11ac446de884519f5382231ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-vectorize -msse2" } */

unsigned int a[256];
float b[256];

void foo(void)
{
  int i;

  for (i=0; i<256; ++i)
    b[i] = a[i];
}

/* { dg-final { scan-assembler "cvtdq2ps" } } */