public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug middle-end/52856] New: misuse of MODE_SIZE vice MODE_PRECISION in get_mode_bounds @ 2012-04-03 21:43 bigotp at acm dot org 2012-04-09 22:32 ` [Bug middle-end/52856] " bigotp at acm dot org 2013-12-30 17:38 ` nickc at gcc dot gnu.org 0 siblings, 2 replies; 3+ messages in thread From: bigotp at acm dot org @ 2012-04-03 21:43 UTC (permalink / raw) To: gcc-bugs 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: unassigned@gcc.gnu.org ReportedBy: bigotp@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. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug middle-end/52856] misuse of MODE_SIZE vice MODE_PRECISION in get_mode_bounds 2012-04-03 21:43 [Bug middle-end/52856] New: misuse of MODE_SIZE vice MODE_PRECISION in get_mode_bounds bigotp at acm dot org @ 2012-04-09 22:32 ` bigotp at acm dot org 2013-12-30 17:38 ` nickc at gcc dot gnu.org 1 sibling, 0 replies; 3+ messages in thread From: bigotp at acm dot org @ 2012-04-09 22:32 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52856 --- Comment #1 from Peter A. Bigot <bigotp at acm dot org> 2012-04-09 22:31:59 UTC --- Created attachment 27120 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27120 Replace GET_MODE_BITSIZE with GET_MODE_PRECISION where necessary ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug middle-end/52856] misuse of MODE_SIZE vice MODE_PRECISION in get_mode_bounds 2012-04-03 21:43 [Bug middle-end/52856] New: misuse of MODE_SIZE vice MODE_PRECISION in get_mode_bounds bigotp at acm dot org 2012-04-09 22:32 ` [Bug middle-end/52856] " bigotp at acm dot org @ 2013-12-30 17:38 ` nickc at gcc dot gnu.org 1 sibling, 0 replies; 3+ messages in thread From: nickc at gcc dot gnu.org @ 2013-12-30 17:38 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52856 Nick Clifton <nickc at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |nickc at gcc dot gnu.org Resolution|--- |DUPLICATE --- Comment #2 from Nick Clifton <nickc at gcc dot gnu.org> --- This is a duplicate of 59613. Closing this one because 59613 includes a test case. *** This bug has been marked as a duplicate of bug 59613 *** ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-12-30 17:38 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-04-03 21:43 [Bug middle-end/52856] New: misuse of MODE_SIZE vice MODE_PRECISION in get_mode_bounds bigotp at acm dot org 2012-04-09 22:32 ` [Bug middle-end/52856] " bigotp at acm dot org 2013-12-30 17:38 ` nickc at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).