1  /* PR target/92841 */
       2  /* { dg-do compile { target { { *-*-linux* && lp64 } && fstack_protector } } } */
       3  /* { dg-options "-O2 -fpic -fstack-protector-strong -masm=att" } */
       4  /* { dg-final { scan-assembler "leaq\tbuf2\\\(%rip\\\)," } } */
       5  
       6  static char buf2[64];
       7  void bar (char *, char *);
       8  
       9  void
      10  foo ()
      11  {
      12    char buf[64];
      13    char *p = buf2;
      14    asm ("" : "+a" (p));
      15    char *q = buf;
      16    asm ("" : "+r" (q));
      17    bar (p, q);
      18  }