diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/avx2-i32gatherps-3.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/avx2-i32gatherps-3.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/avx2-i32gatherps-3.c b/gcc/testsuite/gcc.target/i386/avx2-i32gatherps-3.c new file mode 100644 index 00000000000..0423d2c2345 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/avx2-i32gatherps-3.c @@ -0,0 +1,15 @@ +/* { dg-do compile } */ +/* { dg-options "-mavx2 -O2" } */ +/* { dg-final { scan-assembler "vgatherdps\[ \\t\]+\[^\n\]*%xmm\[0-9\]" } } */ + +#include <immintrin.h> + +__m128 x; +float *base; +__m128i idx; + +void extern +avx2_test (void) +{ + x = _mm_mask_i32gather_ps (x, base, idx, x, 1); +} |