1  /* { dg-do compile } */
       2  /* { dg-options "-std=gnu99" } */
       3  /* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
       4  /* { dg-require-effective-target aarch64_little_endian } */
       5  
       6  #include <arm_neon.h>
       7  
       8  void __attribute__ ((aarch64_vector_pcs)) f (void);
       9  
      10  void
      11  g (int64x2x4_t *ptr)
      12  {
      13    register int64x2x4_t copy asm ("v8") = *ptr;
      14    int64x2x4_t save;
      15    asm volatile ("" : "=w" (save) : "0" (copy));
      16    f ();
      17    *ptr = save;
      18  }
      19  
      20  /* { dg-final { scan-assembler-times {\tld1\t} 1 } } */
      21  /* { dg-final { scan-assembler-times {\tst1\t} 1 } } */
      22  /* { dg-final { scan-assembler-not {\tld[pr]\tq} } } */
      23  /* { dg-final { scan-assembler-not {\tst[pr]\tq} } } */