public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "vda at port dot imtp dot ilyichevsk dot odessa dot ua" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/21182] gcc can use registers but uses stack instead Date: Sat, 23 Apr 2005 22:54:00 -0000 [thread overview] Message-ID: <20050423225442.5122.qmail@sourceware.org> (raw) In-Reply-To: <20050423223032.21182.vda@port.imtp.ilyichevsk.odessa.ua> ------- Additional Comments From vda at port dot imtp dot ilyichevsk dot odessa dot ua 2005-04-23 22:54 ------- These are -O2 and -O3 code comparison. -O3 code have all modified variables in registers and thus is smaller and most likely faster. serpent_encrypt: pushl %ebp movl %esp, %ebp pushl %edi pushl %esi pushl %ebx subl $256, %esp movl 8(%ebp), %edx movl 16(%ebp), %eax movl 12(%eax), %ebx movl 12(%edx), %ecx xorl %ebx, %ecx movl (%edx), %edi movl %ecx, -20(%ebp) xorl (%eax), %edi movl 8(%edx), %ecx movl 4(%edx), %ebx movl -20(%ebp), %esi xorl 8(%eax), %ecx orl %edi, -20(%ebp) xorl 4(%eax), %ebx xorl %ebx, -20(%ebp) xorl %esi, %edi xorl %ecx, %esi andl %edi, %ebx xorl %edi, %ecx notl %esi xorl -20(%ebp), %edi movl %edx, -16(%ebp) serpent_encrypt: pushl %ebp movl %esp, %ebp pushl %edi pushl %esi pushl %ebx pushl %edx movl 8(%ebp), %edi movl 16(%ebp), %ecx movl 12(%edi), %eax xorl 12(%ecx), %eax movl 8(%edi), %esi movl 4(%edi), %edx movl (%edi), %ebx xorl 8(%ecx), %esi xorl 4(%ecx), %edx xorl (%ecx), %ebx movl %eax, %ecx orl %ebx, %ecx xorl %eax, %ebx xorl %esi, %eax xorl %edx, %ecx notl %eax andl %ebx, %edx xorl %eax, %edx xorl %ebx, %esi xorl %ecx, %ebx orl %ebx, %eax xorl %esi, %ebx andl %edx, %esi xorl %esi, %eax notl %edx -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21182
next prev parent reply other threads:[~2005-04-23 22:54 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-04-23 22:30 [Bug rtl-optimization/21182] New: " vda at port dot imtp dot ilyichevsk dot odessa dot ua 2005-04-23 22:32 ` [Bug rtl-optimization/21182] " vda at port dot imtp dot ilyichevsk dot odessa dot ua 2005-04-23 22:39 ` pinskia at gcc dot gnu dot org 2005-04-23 22:49 ` vda at port dot imtp dot ilyichevsk dot odessa dot ua 2005-04-23 22:54 ` vda at port dot imtp dot ilyichevsk dot odessa dot ua [this message] 2005-04-24 13:05 ` vda at port dot imtp dot ilyichevsk dot odessa dot ua 2005-05-07 15:24 ` steven at gcc dot gnu dot org [not found] <bug-21182-4@http.gcc.gnu.org/bugzilla/> 2013-01-18 0:48 ` vda.linux at googlemail dot com 2013-01-18 0:51 ` vda.linux at googlemail dot com 2013-01-18 0:55 ` vda.linux at googlemail dot com 2013-01-18 0:57 ` pinskia at gcc dot gnu.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=20050423225442.5122.qmail@sourceware.org \ --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).