summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/avx512f-i32gatherpd512-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/avx512f-i32gatherpd512-1.c')
-rw-r--r--gcc/testsuite/gcc.target/i386/avx512f-i32gatherpd512-1.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/avx512f-i32gatherpd512-1.c b/gcc/testsuite/gcc.target/i386/avx512f-i32gatherpd512-1.c
new file mode 100644
index 00000000000..88b9ae62455
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/avx512f-i32gatherpd512-1.c
@@ -0,0 +1,17 @@
+/* { dg-do compile } */
+/* { dg-options "-mavx512f -O2" } */
+/* { dg-final { scan-assembler-times "vgatherdpd\[ \\t\]+\[^\n\]*ymm\[0-9\]\[^\n\]*zmm\[0-9\]{%k\[1-7\]}" 2 } } */
+
+#include <immintrin.h>
+
+volatile __m512d x;
+volatile __m256i idx;
+volatile __mmask8 m8;
+double *base;
+
+void extern
+avx512f_test (void)
+{
+ x = _mm512_i32gather_pd (idx, base, 8);
+ x = _mm512_mask_i32gather_pd (x, m8, idx, base, 8);
+}