New.
From-SVN: r46212
This commit is contained in:
parent
3c72bea4b1
commit
794e24e7a5
14
gcc/testsuite/gcc.dg/asm-4.c
Normal file
14
gcc/testsuite/gcc.dg/asm-4.c
Normal 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" } } */
|
Loading…
Reference in New Issue
Block a user