diff options
author | Dale Johannesen <dalej@apple.com> | 2002-03-20 10:41:46 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2002-03-20 10:41:46 +0100 |
commit | ed7d44bc74c5af2bd9e44ffe05b5b99c607fc614 (patch) | |
tree | 79ccb4c2d3eb0b8df336075f26872944075fde6f /gcc/testsuite/gcc.dg/20020319-1.c | |
parent | b525f5b0f7cccee5addcd54d84cdb86115ab1c7d (diff) | |
download | gcc-ed7d44bc74c5af2bd9e44ffe05b5b99c607fc614.zip gcc-ed7d44bc74c5af2bd9e44ffe05b5b99c607fc614.tar.gz gcc-ed7d44bc74c5af2bd9e44ffe05b5b99c607fc614.tar.bz2 |
PR optimization/5999, middle-end/5731
PR optimization/5999, middle-end/5731
* expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
multiplications by reciprocals.
* gcc.c-torture/compile/20020319-1.c: New test.
From-SVN: r51071
Diffstat (limited to 'gcc/testsuite/gcc.dg/20020319-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/20020319-1.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20020319-1.c b/gcc/testsuite/gcc.dg/20020319-1.c new file mode 100644 index 0000000..46a756d --- /dev/null +++ b/gcc/testsuite/gcc.dg/20020319-1.c @@ -0,0 +1,10 @@ +/* PR optimization/5999 + This testcase ICEd because one a/b -> a * (1/b) optimization + did not handle complex divides. */ +/* { dg-do compile } */ +/* { dg-options "-O2 -ffast-math" } */ + +__complex__ double foo (__complex__ double x, __complex__ double y) +{ + return x / y; +} |