This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/25529] New: (unsigned * 2)/2 is not changed into unsigned &0x7FFFFFFF
- 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: 22 Dec 2005 06:26:36 -0000
- Subject: [Bug tree-optimization/25529] New: (unsigned * 2)/2 is not changed into unsigned &0x7FFFFFFF
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Testcase:
int f1(unsigned t)
{
return (t*2)/2;
}
This is done in combine on the RTL level.
--
Summary: (unsigned * 2)/2 is not changed into unsigned
&0x7FFFFFFF
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: missed-optimization, TREE
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
OtherBugsDependingO 19986
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25529