public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dann at godzilla dot ics dot uci dot edu" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/17237] New: inefficient parameter passing on x86 Date: Mon, 30 Aug 2004 05:58:00 -0000 [thread overview] Message-ID: <20040830055803.17237.dann@godzilla.ics.uci.edu> (raw) Compiling: unsigned long long LLD(unsigned long long arg1, unsigned long long arg2) { return arg1 / arg2; } with gcc -O2 -fomit-frame-pointer generates: subl $28, %esp movl 40(%esp), %eax movl 44(%esp), %edx movl %eax, 8(%esp) movl 32(%esp), %eax movl %edx, 12(%esp) movl 36(%esp), %edx movl %eax, (%esp) movl %edx, 4(%esp) call __udivdi3 addl $28, %esp ret which is 48 bytes. The ICC generated code is 28 bytes: pushl 16(%esp) #521.17 pushl 16(%esp) #521.17 pushl 16(%esp) #521.17 pushl 16(%esp) #521.17 call __udivdi3 #521.17 addl $16, %esp #521.17 ret #521.17 -- Summary: inefficient parameter passing on x86 Product: gcc Version: 3.5.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dann at godzilla dot ics dot uci dot edu CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17237
next reply other threads:[~2004-08-30 5:58 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-08-30 5:58 dann at godzilla dot ics dot uci dot edu [this message] 2004-10-06 23:36 ` [Bug rtl-optimization/17237] " giovannibajo at libero dot it 2004-10-07 0:05 ` dann at godzilla dot ics dot uci dot edu 2004-10-07 0:26 ` [Bug rtl-optimization/17237] inefficient parameter passing on x86 (useless stack space allocated) giovannibajo at libero dot it 2004-10-07 0:26 ` [Bug rtl-optimization/17237] inefficient parameter passing on x86 giovannibajo at libero dot it 2004-10-07 19:55 ` [Bug rtl-optimization/17237] inefficient parameter passing on x86 (useless stack space allocated) rth at gcc dot gnu dot org 2004-10-07 19:57 ` pinskia at gcc dot gnu dot org
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=20040830055803.17237.dann@godzilla.ics.uci.edu \ --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).