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