diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-05 11:29:15 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-05 11:29:15 +0000 |
commit | 67a994e6f00fe08f29ef0f9012da560d9291fb04 (patch) | |
tree | 8869d5370251e1a12637976c0f2dc56ebedf89c4 /gcc/testsuite/gcc.dg/20030204-1.c | |
parent | 915e3cca0a15cf4a5bd2de3ad52c9ee70070a187 (diff) | |
download | gcc-67a994e6f00fe08f29ef0f9012da560d9291fb04.tar.gz |
PR optimization/8555
* config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
instead of aborting.
* gcc.dg/20030204-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62438 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/20030204-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/20030204-1.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20030204-1.c b/gcc/testsuite/gcc.dg/20030204-1.c new file mode 100644 index 00000000000..e236e3a3a39 --- /dev/null +++ b/gcc/testsuite/gcc.dg/20030204-1.c @@ -0,0 +1,16 @@ +/* PR optimization/8555 */ +/* { dg-do compile } */ +/* { dg-options "-O -ffast-math -funroll-loops" } */ +/* { dg-options "-march=pentium3 -O -ffast-math -funroll-loops" { target i?86-*-* } } */ + +float foo (float *a, int i) +{ + int j; + float x = a[j = i - 1], y; + + for (j = i; --j >= 0; ) + if ((y = a[j]) > x) + x = y; + + return x; +} |