public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/95453] New: Failure to avoid useless sign extension
@ 2020-05-31 14:53 gabravier at gmail dot com
  2020-05-31 16:22 ` [Bug target/95453] " pinskia at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: gabravier at gmail dot com @ 2020-05-31 14:53 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95453
           Summary: Failure to avoid useless sign extension
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gabravier at gmail dot com
  Target Milestone: ---

void f2(int);
void f1(short x)
{
    f2(x);
}

With -O3, GCC outputs this :

f1(short):
  movsx edi, di
  jmp f2(int)

LLVM outputs this :

f1(short): # @f1(short)
  jmp f2(int) # TAILCALL

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

* [Bug target/95453] Failure to avoid useless sign extension
  2020-05-31 14:53 [Bug target/95453] New: Failure to avoid useless sign extension gabravier at gmail dot com
@ 2020-05-31 16:22 ` pinskia at gcc dot gnu.org
  2020-06-01  7:50 ` crazylht at gmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2020-05-31 16:22 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ABI

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
What does the ABI say about argument passing of types which are sized less than
int?

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

* [Bug target/95453] Failure to avoid useless sign extension
  2020-05-31 14:53 [Bug target/95453] New: Failure to avoid useless sign extension gabravier at gmail dot com
  2020-05-31 16:22 ` [Bug target/95453] " pinskia at gcc dot gnu.org
@ 2020-06-01  7:50 ` crazylht at gmail dot com
  2021-03-04 21:03 ` pinskia at gcc dot gnu.org
  2021-03-04 21:03 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: crazylht at gmail dot com @ 2020-06-01  7:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Hongtao.liu <crazylht at gmail dot com> ---
Duplicated as PR95076?

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

* [Bug target/95453] Failure to avoid useless sign extension
  2020-05-31 14:53 [Bug target/95453] New: Failure to avoid useless sign extension gabravier at gmail dot com
  2020-05-31 16:22 ` [Bug target/95453] " pinskia at gcc dot gnu.org
  2020-06-01  7:50 ` crazylht at gmail dot com
@ 2021-03-04 21:03 ` pinskia at gcc dot gnu.org
  2021-03-04 21:03 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-03-04 21:03 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonathan.poelen at gmail dot com

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

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

* [Bug target/95453] Failure to avoid useless sign extension
  2020-05-31 14:53 [Bug target/95453] New: Failure to avoid useless sign extension gabravier at gmail dot com
                   ` (2 preceding siblings ...)
  2021-03-04 21:03 ` pinskia at gcc dot gnu.org
@ 2021-03-04 21:03 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-03-04 21:03 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is a dup of bug 97607 which has the anlysis already.

*** This bug has been marked as a duplicate of bug 97607 ***

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

end of thread, other threads:[~2021-03-04 21:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-31 14:53 [Bug target/95453] New: Failure to avoid useless sign extension gabravier at gmail dot com
2020-05-31 16:22 ` [Bug target/95453] " pinskia at gcc dot gnu.org
2020-06-01  7:50 ` crazylht at gmail dot com
2021-03-04 21:03 ` pinskia at gcc dot gnu.org
2021-03-04 21:03 ` pinskia 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).