* gcc.dg/mt-loopi1.c: New.

From-SVN: r108788
This commit is contained in:
Nathan Sidwell 2005-12-19 11:01:38 +00:00 committed by Nathan Sidwell
parent 819f8bd767
commit 4d509057e8
2 changed files with 17 additions and 0 deletions

View 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

View File

@ -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;
}