]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* gcc.dg/mt-loopi1.c: New.
authorNathan Sidwell <nathan@codesourcery.com>
Mon, 19 Dec 2005 11:01:38 +0000 (11:01 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 19 Dec 2005 11:01:38 +0000 (11:01 +0000)
From-SVN: r108788

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/mt-loopi1.c [new file with mode: 0644]

index 6dd7053f40f2c7886e31f098a805c3d0bf05b08f..02d6c864323defa889ec822ad90114806810e6f0 100644 (file)
@@ -1,3 +1,7 @@
+2005-12-19  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * gcc.dg/mt-loopi1.c: New.
+
 2005-12-18  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/25481
diff --git a/gcc/testsuite/gcc.dg/mt-loopi1.c b/gcc/testsuite/gcc.dg/mt-loopi1.c
new file mode 100644 (file)
index 0000000..5cce035
--- /dev/null
@@ -0,0 +1,13 @@
+/* { dg-do compile { target mt-*-* } } */
+/* { dg-options "-O2 -march=ms2" } */
+/* { dg-final { scan-assembler "\tloopi " } } */
+
+/* Make sure we generate loopi */
+
+void Const (volatile int *ptr)
+{
+  int i;
+
+  for (i = 0; i != 10; i++)
+    *ptr;
+}