This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/37390] wrong-code on i486-linux-gnu with -O[12], -O0 works
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Sep 2008 22:54:48 -0000
- Subject: [Bug target/37390] wrong-code on i486-linux-gnu with -O[12], -O0 works
- References: <bug-37390-11764@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2008-09-05 22:54 -------
I think this is really PR 323. Using -ffloat-store gives the correct answer.
D.2639 = pow ((double) a, (double) b + 1.0e+0);
num = (ull) D.2639 - 1.0e+0;
So I don't know what else to say, except -ffloat-store or use -mfpmath=sse.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37390