1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-require-effective-target maybe_x32 } */
3 /* { dg-options "-mx32 -O2 -mavx512f" } */
4 /* { dg-final { scan-assembler-not "\tvscatter" } } */
5 /* { dg-final { scan-assembler "addr32 vscatter" } } */
6
7 typedef int __v8si __attribute__ ((__vector_size__ (32)));
8 typedef double __v8df __attribute__ ((__vector_size__ (64)));
9 typedef long long __m256i __attribute__ ((__vector_size__ (32),
10 __may_alias__));
11 typedef double __m512d __attribute__ ((__vector_size__ (64), __may_alias__));
12 typedef unsigned char __mmask8;
13
14 extern __inline void
15 __attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
_mm512_i32scatter_pd(void * __addr,__m256i __index,__m512d __v1,int __scale)16 _mm512_i32scatter_pd (void *__addr, __m256i __index, __m512d __v1,
17 int __scale)
18 {
19 __builtin_ia32_scattersiv8df (__addr, (__mmask8) 0xFF,
20 (__v8si) __index, (__v8df) __v1, __scale);
21 }
22
23 volatile __m512d src;
24 volatile __m256i idx;
25
26 void extern
avx512f_test(void)27 avx512f_test (void)
28 {
29 _mm512_i32scatter_pd ((void *) 0, idx, src, 8);
30 }
31