* fold-const.c (fold_binary) <RDIV_EXPR>: Optimize A / A to 1.0
commit73444c651ff4e30a66b18ae14f5a669994238076
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Nov 2005 07:49:47 +0000 (21 07:49 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Nov 2005 07:49:47 +0000 (21 07:49 +0000)
tree1d2eeb3b6160ee6b9edecc9b94a1b55db1c94ced
parent5b75b0ba2eae5a416236e3ce672cb716ad442cfa
    * fold-const.c (fold_binary) <RDIV_EXPR>: Optimize A / A to 1.0
        if we don't care about NaNs or Infinities.

testsuite:

        * gcc.dg/fold-div-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107282 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-div-2.c [new file with mode: 0644]