Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr100711-6.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512f -mno-avx512vl -mprefer-vector-width=512 -Os" } */
3
4 typedef int v16si __attribute__ ((vector_size (64)));
5 typedef long long v8di __attribute__((vector_size (64)));
6
7 v16si foo_v16si (const int *a)
8 {
9 return (__extension__ (v16si) {~*a, ~*a, ~*a, ~*a, ~*a, ~*a, ~*a, ~*a,
10 ~*a, ~*a, ~*a, ~*a, ~*a, ~*a, ~*a, ~*a});
11 }
12
13 v8di foo_v8di (const long long *a)
14 {
15 return (__extension__ (v8di) {~*a, ~*a, ~*a, ~*a, ~*a, ~*a, ~*a, ~*a});
16 }
17
18 /* { dg-final { scan-assembler-times "vpternlog\[dq\]\[ \\t\]+\\\$0x55, \\(%(?:eax|rdi|edi)\\)\\\{1to\[1-8\]+\\\}" 2 } } */