OSDN Git Service

* lib/gcc-dg.exp (dg-skip-if): New function.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / asm-4.c
index 662f5d5..0067598 100644 (file)
@@ -3,12 +3,15 @@
 
 int main()
 {
-  int x;
+  int x, y, z;
 
   asm volatile ("test0 X%0Y%[arg]Z" : [arg] "=g" (x));
-  asm volatile ("test1 X%[out]Y%[in]Z" : [out] "=g" (x) : [in] "0"(x));
+  asm volatile ("test1 X%[out]Y%[in]Z" : [out] "=g" (y) : [in] "0"(y));
+  asm volatile ("test2 X%a0Y%a[arg]Z" : : [arg] "p" (&z));
+  asm volatile ("test3 %[in]" : [inout] "=g"(x) : "[inout]" (x), [in] "g" (y));
 }
 
 /* ??? 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" } } */
+/* { dontdg-final { scan-assembler "test2 X(.*)Y\1Z" } } */