public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/89604] Type conversion from signed char to a wider integer generates wrong assembly for ARM,
       [not found] <bug-89604-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-18  1:22 ` pinskia at gcc dot gnu.org
  2021-08-18 13:52 ` rearnsha at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-18  1:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89604

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mlwmohawk at gmail dot com

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 101953 has been marked as a duplicate of this bug. ***

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

* [Bug target/89604] Type conversion from signed char to a wider integer generates wrong assembly for ARM,
       [not found] <bug-89604-4@http.gcc.gnu.org/bugzilla/>
  2021-08-18  1:22 ` [Bug target/89604] Type conversion from signed char to a wider integer generates wrong assembly for ARM, pinskia at gcc dot gnu.org
@ 2021-08-18 13:52 ` rearnsha at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2021-08-18 13:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89604

--- Comment #6 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
For the record, the choice of unsigned for the default char type dates back to
the original Arm architecture, which only had unsigned byte load instructions
(and sign-extending values required two further instructions - a left shift
followed by an arithmetic right shift).  Even with the current architecture the
A32 unsigned byte load instructions are more flexible than the signed byte load
instructions.

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

end of thread, other threads:[~2021-08-18 13:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-89604-4@http.gcc.gnu.org/bugzilla/>
2021-08-18  1:22 ` [Bug target/89604] Type conversion from signed char to a wider integer generates wrong assembly for ARM, pinskia at gcc dot gnu.org
2021-08-18 13:52 ` rearnsha 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).