Bug 25529 - (unsigned * 2)/2 is not changed into unsigned &0x7FFFFFFF
Summary: (unsigned * 2)/2 is not changed into unsigned &0x7FFFFFFF
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 4.2.0
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
Keywords: 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:
Known to work:
Known to fail:
Last reconfirmed: 2006-08-21 06:08:51


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
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.