summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/recip-vec-divf-avx.c
blob: dfc4c73dfd68ab849c1b8299f5068df2a674611f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O2 -ffast-math -ftree-vectorize -mavx -mtune=generic -mfpmath=sse -mrecip" } */

float a[16];
float b[16];
float r[16];

void t1(void)
{
 int i;

 for (i = 0; i < 16; i++)
   r[i] = a[i] / b[i];
}

/* { dg-final { scan-assembler "vrcpps\[ \\t\]+\[^\n\]*%ymm" } } */