Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/ext_2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O -msve-vector-bits=256" } */
3
4 typedef int vnx4si __attribute__((vector_size (32)));
5
6 void
7 foo (void)
8 {
9 register vnx4si x asm ("z0");
10 register vnx4si y asm ("z1");
11
12 asm volatile ("" : "=w" (y));
13 x = __builtin_shuffle (y, y, (vnx4si) { 1, 2, 3, 4, 5, 6, 7, 8 });
14 asm volatile ("" :: "w" (x));
15 }
16
17 /* { dg-final { scan-assembler {\tmovprfx\tz0, z1\n\text\tz0\.b, z0\.b, z1\.b, #4\n} } } */