Debian Codegraph @

gcc/testsuite/gcc.target/i386/avx512fp16-vmovw-4a.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mavx512fp16" } */
3
4 typedef short __v32hi __attribute__ ((__vector_size__ (64)));
5 typedef long long __m512i __attribute__ ((__vector_size__ (64), __may_alias__));
6
7 __m512i
8 __attribute__ ((noinline, noclone))
9 foo1 (short x)
10 {
11 return __extension__ (__m512i)(__v32hi) { x, 0, 0, 0, 0, 0, 0, 0,
12 0, 0, 0, 0, 0, 0, 0, 0,
13 0, 0, 0, 0, 0, 0, 0, 0,
14 0, 0, 0, 0, 0, 0, 0, 0 };
15 }
16
17 __m512i
18 __attribute__ ((noinline, noclone))
19 foo2 (short *x)
20 {
21 return __extension__ (__m512i)(__v32hi) { *x, 0, 0, 0, 0, 0, 0, 0,
22 0, 0, 0, 0, 0, 0, 0, 0,
23 0, 0, 0, 0, 0, 0, 0, 0,
24 0, 0, 0, 0, 0, 0, 0, 0 };
25 }
26
27 /* { dg-final { scan-assembler-times "vmovw\[^-\n\r]*xmm0" 2 } } */