public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/45000]  New: RX signed extened unsigned char or short return value.
@ 2010-07-20  9:07 kazuhiro dot inaoka dot ud at renesas dot com
  2010-07-22  9:43 ` [Bug target/45000] " nickc at redhat dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: kazuhiro dot inaoka dot ud at renesas dot com @ 2010-07-20  9:07 UTC (permalink / raw)
  To: gcc-bugs

When a function return type is "unsigned char", the return value is sign
extended by "MOV" instruction.
It should be "MOVU" instruction.

ex)
unsigned char uA;

unsigned char
func()
{
  return uA;
}

NG)
_func:
        mov.L   #_uA, r14
        mov.B   [r14], r1
        rts
        .size   _func, .-_func
        .comm   _uA,1,4


-- 
           Summary: RX signed extened unsigned char or short return value.
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kazuhiro dot inaoka dot ud at renesas dot com
 GCC build triplet: i686-linux
  GCC host triplet: i686-linux
GCC target triplet: rx-elf


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


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

end of thread, other threads:[~2010-08-03  9:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-20  9:07 [Bug target/45000] New: RX signed extened unsigned char or short return value kazuhiro dot inaoka dot ud at renesas dot com
2010-07-22  9:43 ` [Bug target/45000] " nickc at redhat dot com
2010-07-28  7:19 ` kazuhiro dot inaoka dot ud at renesas dot com
2010-07-28 13:55 ` nickc at redhat dot com
2010-07-28 14:05 ` nickc at redhat dot com
2010-08-03  9:33 ` kazuhiro dot inaoka dot ud at renesas dot com

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