OSDN Git Service

* gcc.dg/h8300-stack-1.c: New.
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Jan 2003 15:01:14 +0000 (15:01 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Jan 2003 15:01:14 +0000 (15:01 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60785 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 4439f02..ada2e5a 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" } } */