Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr114514-shift.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512vl -mavx512bw -O2" } */
3 /* { dg-final { scan-assembler-times "vpxor" 4 } } */
4 /* { dg-final { scan-assembler-times "vpcmpgtb" 4 { target { ! ia32 } } } } */
5 /* { dg-final { scan-assembler-times "vpcmpgtb" 5 { target ia32 } } } */
6 /* { dg-final { scan-assembler-times "vpmovb2m" 1 } } */
7 /* { dg-final { scan-assembler-times "vpmovm2b" 1 } } */
8
9
10 typedef char v16qi __attribute__((vector_size(16)));
11 typedef char v32qi __attribute__((vector_size(32)));
12 typedef char v64qi __attribute__((vector_size(64)));
13 typedef char v8qi __attribute__((vector_size(8)));
14 typedef char v4qi __attribute__((vector_size(4)));
15
16 v4qi
17 __attribute__((noipa))
18 foo1 (v4qi a)
19 {
20 return a >> 7;
21 }
22
23 v8qi
24 __attribute__((noipa))
25 foo2 (v8qi a)
26 {
27 return a >> 7;
28 }
29
30 v16qi
31 __attribute__((noipa))
32 foo3 (v16qi a)
33 {
34 return a >> 7;
35 }
36
37 v32qi
38 __attribute__((noipa))
39 foo4 (v32qi a)
40 {
41 return a >> 7;
42 }
43
44 v64qi
45 __attribute__((noipa))
46 foo5 (v64qi a)
47 {
48 return a >> 7;
49 }