From-SVN: r46212
This commit is contained in:
Richard Henderson 2001-10-11 17:10:34 -07:00
parent 3c72bea4b1
commit 794e24e7a5
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
/* { dg-do compile } */
/* { dg-options "" } */
int main()
{
int x;
asm volatile ("test0 X%0Y%[arg]Z" : [arg] "=g" (x));
asm volatile ("test1 X%[out]Y%[in]Z" : [out] "=g" (x) : [in] "0"(x));
}
/* ??? Someone explain why the back reference dosn't work. */
/* { dontdg-final { scan-assembler "test0 X(.*)Y\1Z" } } */
/* { dontdg-final { scan-assembler "test1 X(.*)Y\1Z" } } */