public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/46942] x86_64 parameter passing unnecessary sign/zero extends Date: Mon, 03 Jan 2011 14:23:00 -0000 [thread overview] Message-ID: <bug-46942-4-PgcxSWPgtf@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-46942-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46942 --- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> 2011-01-03 14:23:05 UTC --- For void f1(char c, char d, char e, char f, char g, char h, char i); char x; void f2() { f1(x, x, x, x, x, x, x); } ICC generates this assembly, where we only store 8 bits to the stack for the final parameter. f2: pushq %rsi addq $-16, %rsp movsbl x(%rip), %edi movb %dil, (%rsp) movl %edi, %esi movl %edi, %edx movl %edi, %ecx movl %edi, %r8d movl %edi, %r9d call f1 addq $16, %rsp popq %rcx ret
next prev parent reply other threads:[~2011-01-03 14:23 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-12-14 16:50 [Bug target/46942] New: " jakub at gcc dot gnu.org 2010-12-14 17:13 ` [Bug target/46942] " jakub at gcc dot gnu.org 2010-12-14 17:26 ` joseph at codesourcery dot com 2010-12-16 15:12 ` rguenth at gcc dot gnu.org 2011-01-02 17:58 ` hjl.tools at gmail dot com 2011-01-02 17:59 ` hjl.tools at gmail dot com 2011-01-02 19:02 ` jakub at gcc dot gnu.org 2011-01-02 20:53 ` hjl.tools at gmail dot com 2011-01-03 14:23 ` hjl.tools at gmail dot com [this message] 2011-03-25 20:06 ` jakub at gcc dot gnu.org 2011-04-28 16:38 ` rguenth at gcc dot gnu.org 2012-03-08 3:42 ` meadori at gmail 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-46942-4-PgcxSWPgtf@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).