blob: b2d5eb86389a3759760b625f4a5bb9367bdd1b9e [file] [log] [blame]
/* PR target/92841 */
/* { dg-do compile { target { { { *-*-linux* } && lp64 } && fstack_protector } } } */
/* { dg-options "-O2 -fpic -fstack-protector-strong -masm=att" } */
/* { dg-final { scan-assembler "leaq\tbuf2\\\(%rip\\\)," } } */
static char buf2[64];
void bar (char *, char *);
void
foo ()
{
char buf[64];
char *p = buf2;
asm ("" : "+a" (p));
char *q = buf;
asm ("" : "+r" (q));
bar (p, q);
}