public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "kazuhiro dot inaoka dot ud at renesas dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/45000] New: RX signed extened unsigned char or short return value. Date: Tue, 20 Jul 2010 09:07:00 -0000 [thread overview] Message-ID: <bug-45000-19023@http.gcc.gnu.org/bugzilla/> (raw) 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
next reply other threads:[~2010-07-20 9:07 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-07-20 9:07 kazuhiro dot inaoka dot ud at renesas dot com [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-45000-19023@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).