diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-04-18 20:10:48 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-04-18 20:10:48 +0000 |
commit | 3a69e0d573a31b39d36c98a939a52da26c47cde6 (patch) | |
tree | 91580e7aab79319ad4f22055c99f94baf53de373 /gcc/testsuite/gcc.dg/20020418-2.c | |
parent | fe70d0e306045b920df0feaf869e83b5106e8098 (diff) | |
download | gcc-3a69e0d573a31b39d36c98a939a52da26c47cde6.tar.gz |
PR optimization/5887, PR optimization/6010
* gcc.dg/20020418-1.c: New test.
* gcc.dg/20020418-2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52492 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/20020418-2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/20020418-2.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20020418-2.c b/gcc/testsuite/gcc.dg/20020418-2.c new file mode 100644 index 00000000000..fbc38da03da --- /dev/null +++ b/gcc/testsuite/gcc.dg/20020418-2.c @@ -0,0 +1,21 @@ +/* PR optimization/6010 */ +/* { dg-do compile } */ +/* { dg-options "-O2 -funroll-all-loops" } */ +/* { dg-options "-O2 -funroll-all-loops -march=pentium3" { target i?86-*-* } } */ + +void bar (float); + +void foo (float y, unsigned long z) +{ + int b; + float c = y; + + for (b = 0; b < z; b++) + { + bar (c); + if (c == y) + c = -y; + else + c = y; + } +} |