This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[MT PATCH] new testcase
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 19 Dec 2005 11:03:01 +0000
- Subject: [MT PATCH] new testcase
Here's a testcase for mt's loop instruction.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
2005-12-19 Nathan Sidwell <nathan@codesourcery.com>
* gcc.dg/mt-loopi1.c: New.
Index: testsuite/gcc.dg/mt-loopi1.c
===================================================================
--- testsuite/gcc.dg/mt-loopi1.c (revision 0)
+++ testsuite/gcc.dg/mt-loopi1.c (revision 0)
@@ -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;
+}