summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lto/pr47259_0.c
blob: b95947887e4d4e915f500fbab23d0767c8e777bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-lto-do link } */
/* { dg-skip-if "" { ! { x86_64-*-* } } { "*" } { "" } } */
/* { dg-lto-options { { -O2 -flto -w } } } */
/* { dg-require-effective-target lp64 } */

register int r asm("esi");

void foo(void)
{
  if (r)
    __asm__("sar\t%0" : "+r" (r));
  __asm__("sar\t%0" : "+r" (r));
}