This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/31097] New: a/C == b/C is not foldded to a == b with --fast-math/floating point
- 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: 9 Mar 2007 09:05:38 -0000
- Subject: [Bug middle-end/31097] New: a/C == b/C is not foldded to a == b with --fast-math/floating point
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following two functions should be equalivant with --fast-math:
int f(float a, float b)
{
return a/10 == b/10;
}
int f1(float a, float b)
{
return a == b;
}
--
Summary: a/C == b/C is not foldded to a == b with --fast-
math/floating point
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31097