* gcc.dg/h8300-stack-1.c: New.
authorKazu Hirata <kazu@cs.umass.edu>
Thu, 2 Jan 2003 15:01:14 +0000 (15:01 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Thu, 2 Jan 2003 15:01:14 +0000 (15:01 +0000)
From-SVN: r60785

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/h8300-stack-1.c [new file with mode: 0644]

index 4439f02a9989cbd6db01fec164a3a667ca9b1b40..ada2e5a2fd20826bdb6fec7d1e03dc9f94f6602a 100644 (file)
@@ -1,3 +1,7 @@
+2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * gcc.dg/h8300-stack-1.c: New.
+
 2003-01-01  Nathanael Nerode  <neroden@gcc.gnu.org>
 
        g++.dg/lookup/exception1.C: New test.
diff --git a/gcc/testsuite/gcc.dg/h8300-stack-1.c b/gcc/testsuite/gcc.dg/h8300-stack-1.c
new file mode 100644 (file)
index 0000000..b63bde2
--- /dev/null
@@ -0,0 +1,14 @@
+/* Make sure that the H8 backend does not generate a non-atomic stack
+   adjustment.  */
+/* { dg-do compile { target h8300-*-* } } */
+/* { dg-options "" } */
+
+void foo (short, short, short, short, short, short);
+
+void
+bar ()
+{
+  foo (0, 0, 0, 0, 0, 0);
+}
+
+/* { dg-final { scan-assembler-not "addx" } } */