1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 typedef int v4si __attribute__ ((vector_size (16)));
5
6 void bar (void);
7 void
8 foo (void)
9 {
10 v4si x = { 1, 1, 1, 1 };
11 asm ("# %0" :: "w" (x));
12 bar ();
13 asm ("# %0" :: "w" (x));
14 }
15
16 /* { dg-final { scan-assembler-times {\tmovi\tv[0-9]+\.4s,} 2 } } */
17 /* { dg-final { scan-assembler-not {\tldr\t} } } */
18 /* { dg-final { scan-assembler-not {\tstr\t} } } */