http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52856
Bug #: 52856 Summary: misuse of MODE_SIZE vice MODE_PRECISION in get_mode_bounds Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassig...@gcc.gnu.org ReportedBy: big...@acm.org get_mode_bounds improperly uses GET_MODE_BITSIZE(mode) instead of GET_MODE_PRECISION(mode) when calculating the minimal and maximal values. This produces the wrong answer for a 20-bit PSImode, causing an ordered comparison of a PSImode integer with zero to improperly fold to a constant in the out-of-tree msp430 back-end.