projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c72bea
)
New.
author
Richard Henderson
<rth@gcc.gnu.org>
Fri, 12 Oct 2001 00:10:34 +0000
(17:10 -0700)
committer
Richard Henderson
<rth@gcc.gnu.org>
Fri, 12 Oct 2001 00:10:34 +0000
(17:10 -0700)
From-SVN: r46212
gcc/testsuite/gcc.dg/asm-4.c
[new file with mode: 0644]
patch
|
blob
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
+++ b/
gcc/testsuite/gcc.dg/asm-4.c
@@ -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" } } */