aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2001-10-12 12:51:17 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2001-10-12 12:51:17 +0200
commit8554d9a464c544fbe1f2cf7df84b33dd8ab79347 (patch)
treea51f1faf4476c94046f181727d55f03fb99cb9b1 /gcc/testsuite
parente60505a59dad6aa8c17c43411e4998b209ddcd64 (diff)
downloadgcc-8554d9a464c544fbe1f2cf7df84b33dd8ab79347.zip
gcc-8554d9a464c544fbe1f2cf7df84b33dd8ab79347.tar.gz
gcc-8554d9a464c544fbe1f2cf7df84b33dd8ab79347.tar.bz2
final.c (output_asm_insn): Make sure assembly dialects are terminated, not nested.
* final.c (output_asm_insn): Make sure assembly dialects are terminated, not nested. Output `|' and `}' characters if they don't appear inside assembly dialect selection. * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64, rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi, rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1, strsetsi_rex_1): Add {} braces. * testsuite/gcc.dg/20011009-1.c: New test. From-SVN: r46227
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/20011009-1.c16
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 2a50b83..35f40e5 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2001-10-12 Jakub Jelinek <jakub@redhat.com>
+
+ * testsuite/gcc.dg/20011009-1.c: New test.
+
2001-10-12 Nathan Sidwell <nathan@codesourcery.com>
PR g++/4476
diff --git a/gcc/testsuite/gcc.dg/20011009-1.c b/gcc/testsuite/gcc.dg/20011009-1.c
new file mode 100644
index 0000000..dbf32e6
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/20011009-1.c
@@ -0,0 +1,16 @@
+/* { dg-do run { target i?86-*-* } } */
+/* { dg-options "-O2" } */
+
+extern void abort (void);
+extern void exit (int);
+
+int main ()
+{
+ int x;
+
+ asm ("movl $26, %0 # 26 |-> reg \n\t"
+ "movl $28, %0" : "=r" (x));
+ if (x != 28)
+ abort ();
+ exit (0);
+}