This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/37449] [4.4 Regression] calculix gets wrong answer for -O1 -ffast-math
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Oct 2008 15:10:22 -0000
- Subject: [Bug tree-optimization/37449] [4.4 Regression] calculix gets wrong answer for -O1 -ffast-math
- References: <bug-37449-4503@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #26 from jakub at gcc dot gnu dot org 2008-10-20 15:10 -------
On the #c11 testcase with -O2 -funsafe-math-optimizations I still see
# cn_38 = PHI <-1.0e+0(4), 1.0e+0(11)>
D.1262_39 = __builtin_pow (cn_38, 2.0e+0);
D.1263_41 = 1.0e+0 - D.1262_39;
D.1264_42 = __builtin_sqrt (D.1263_41);
before and after PRE, so the recent pre change doesn't handle it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37449