diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2005-12-19 11:01:38 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2005-12-19 11:01:38 +0000 |
commit | 4d509057e8efdb7806351d1a489115246e63525d (patch) | |
tree | 09801c6b7e9b1ab945ce186b78b8fae1ce2afc4c /gcc | |
parent | 819f8bd7670aeb497164349aad000a52a08815d4 (diff) | |
download | gcc-4d509057e8efdb7806351d1a489115246e63525d.zip gcc-4d509057e8efdb7806351d1a489115246e63525d.tar.gz gcc-4d509057e8efdb7806351d1a489115246e63525d.tar.bz2 |
* gcc.dg/mt-loopi1.c: New.
From-SVN: r108788
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/mt-loopi1.c | 13 |
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6dd7053..02d6c86 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 index 0000000..5cce035 --- /dev/null +++ b/gcc/testsuite/gcc.dg/mt-loopi1.c @@ -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; +} |