OSDN Git Service

New.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Oct 2001 00:10:34 +0000 (00:10 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Oct 2001 00:10:34 +0000 (00:10 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46212 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/gcc.dg/asm-4.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.dg/asm-4.c b/gcc/testsuite/gcc.dg/asm-4.c
new file mode 100644 (file)
index 0000000..662f5d5
--- /dev/null
@@ -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" } } */