public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/52940] New: conversion from MODE_PARTIAL_INT uses sign extension for unsigned types
@ 2012-04-11 23:08 bigotp at acm dot org
  2012-04-24  6:42 ` [Bug middle-end/52940] " ebotcazou at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: bigotp at acm dot org @ 2012-04-11 23:08 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52940

             Bug #: 52940
           Summary: conversion from MODE_PARTIAL_INT uses sign extension
                    for unsigned types
    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


In expr.c:convert_move, when from_mode has class MODE_PARTIAL_INT the
conversion is done with sign extension even for unsigned types.  This has been
the behavior since the code was added in 2003, but it seems like a bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-04-26 14:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-11 23:08 [Bug middle-end/52940] New: conversion from MODE_PARTIAL_INT uses sign extension for unsigned types bigotp at acm dot org
2012-04-24  6:42 ` [Bug middle-end/52940] " ebotcazou at gcc dot gnu.org
2012-04-26 13:54 ` bernds at gcc dot gnu.org
2012-04-26 14:21 ` bernds 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).