This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/32183] Gcc 4.3 revision 125030 miscompiles 482.sphinx3 in SPEC CPU 2006
- From: "hjl at lucon dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jun 2007 23:09:09 -0000
- Subject: [Bug tree-optimization/32183] Gcc 4.3 revision 125030 miscompiles 482.sphinx3 in SPEC CPU 2006
- References: <bug-32183-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from hjl at lucon dot org 2007-06-01 23:09 -------
Is that OK to transform
float sf;
...
sf = 500 * sf;
for (i = 0; i < ceplen; i++)
sum[i] *= sf;
to
for (i = 0; i < ceplen; i++)
sum[i] = (sum[i]* 500)*sf;
You can certainly get the different results when sf is small and sum[i] is
large.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32183