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

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