Bug 25529 - (unsigned * 2)/2 is not changed into unsigned &0x7FFFFFFF
(unsigned * 2)/2 is not changed into unsigned &0x7FFFFFFF
Status: NEW
Product: gcc
Classification: Unclassified
Component: middle-end
4.2.0
: P3 enhancement
: ---
Assigned To: Not yet assigned to anyone
: missed-optimization, TREE
Depends on:
Blocks: 19986
  Show dependency treegraph
 
Reported: 2005-12-22 06:26 UTC by Andrew Pinski
Modified: 2007-07-01 00:34 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2006-08-21 06:08:51


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2005-12-22 06:26:36 UTC
Testcase:
int f1(unsigned t)
{
  return (t*2)/2;
}


This is done in combine on the RTL level.
Comment 1 Andrew Pinski 2007-07-01 00:34:23 UTC
Related to PR 25530.