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