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

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