1  /* { dg-options "-O2 -fPIC -msve-vector-bits=256" } */
       2  /* { dg-require-effective-target fpic } */
       3  
       4  typedef unsigned int v8si __attribute__((vector_size(32)));
       5  
       6  extern __thread int y;
       7  
       8  void
       9  f (int *a)
      10  {
      11    v8si x;
      12    asm volatile ("dup %0.s, #0x11" : "=w" (x) :: "memory");
      13    if (*a)
      14      asm volatile ("insr %0.s, %w2" : "=w" (x) : "0" (x), "r" (y));
      15  }
      16  
      17  /* { dg-final { scan-assembler {\tst(r|1.)\tz[0-9]} } } */
      18  /* { dg-final { scan-assembler {\tld(r|1.)\tz[0-9]} } } */