This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/24575] New: -(-i / 10) is not foldded to i/10
- 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: 28 Oct 2005 18:15:09 -0000
- Subject: [Bug tree-optimization/24575] New: -(-i / 10) is not foldded to i/10
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Another reduced testcase from PR 24568:
Note this is only valid for overflow is undefined or for
unsafe_math_transformations.
nt f(int i)
{
return -((-i)/10);
}
int f2(int i)
{
return i/10;
}
--
Summary: -(-i / 10) is not foldded to i/10
Product: gcc
Version: unknown
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: enhancement
Priority: P2
Component: tree-optimization
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=24575