Debian Codegraph @

gcc/testsuite/gcc.target/i386/avx2-pr101611-1.c

raw
1 /* PR target/101611 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -mavx2 -mno-avx512f" } */
4 /* { dg-final { scan-assembler-times {\mvpsrlvq\M} 4 } } */
5 /* { dg-final { scan-assembler-times {\mvpxor\M} 2 } } */
6 /* { dg-final { scan-assembler-times {\mvpsubq\M} 2 } } */
7
8 typedef long long V __attribute__((vector_size(32)));
9 typedef long long W __attribute__((vector_size(16)));
10
11 V foo (V a, V b) { return a >> b; }
12 W bar (W a, W b) { return a >> b; }