Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr92658-avx512bw-trunc-2.c

raw
1 /* PR target/92658 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -mavx512bw -mavx512vl" } */
4 /* { dg-final { scan-assembler-times "vpmovwb" 1 } } */
5 /* { dg-final { scan-assembler-times "vpmovdb" 1 { target { ! ia32 } } } } */
6 /* { dg-final { scan-assembler-times "vpmovdw" 1 { target { ! ia32 } } } } */
7
8 void
9 foo (int* __restrict a, char* b)
10 {
11 b[0] = a[0];
12 b[1] = a[1];
13 }
14
15 void
16 foo2 (short* __restrict a, char* b)
17 {
18 b[0] = a[0];
19 b[1] = a[1];
20 }
21
22 void
23 foo3 (int* __restrict a, short* b)
24 {
25 b[0] = a[0];
26 b[1] = a[1];
27 }