This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/32279] Fold 1.0/sqrt(x/y) to sqrt(y/x)



------- Comment #2 from uros at gcc dot gnu dot org  2007-06-11 09:09 -------
Subject: Bug 32279

Author: uros
Date: Mon Jun 11 09:09:24 2007
New Revision: 125614

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125614
Log:
        PR middle-end/32279
        * fold-const (fold_binary) [RDIV_EXPR]: Optimize a/sqrt(b/c)
        into a*sqrt(c/b) if flag_unsafe_math_optimizations is set.

testsuite/ChangeLog:

        PR middle-end/32279
        * gcc.dg/builtins-11.c: Also check folding of a/sqrt(b/c).


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/builtins-11.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32279


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]