This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;
+}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]