Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr113871-5a.c

raw
1 /* PR target/113871 */
2 /* { dg-do compile { target { ! ia32 } } } */
3 /* { dg-options "-O2" } */
4
5 typedef __bf16 vect64 __attribute__((vector_size(8)));
6
7 void f (vect64 *a)
8 {
9 *a = __builtin_shufflevector(*a, (vect64){0}, 1, 2, 3, 4);
10 }
11
12 /* { dg-final { scan-assembler "psrlq" } } */
13
14 void g(vect64 *a)
15 {
16 *a = __builtin_shufflevector((vect64){0}, *a, 3, 4, 5, 6);
17 }
18
19 /* { dg-final { scan-assembler "psllq" } } */