diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/recip-vec-divf-avx.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/recip-vec-divf-avx.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/recip-vec-divf-avx.c b/gcc/testsuite/gcc.target/i386/recip-vec-divf-avx.c new file mode 100644 index 000000000..dfc4c73df --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/recip-vec-divf-avx.c @@ -0,0 +1,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" } } */ |