public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "uros at kss-loka dot si" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/17647] [4.0 regression] Missing i386 addressing modes Date: Fri, 05 Nov 2004 08:00:00 -0000 [thread overview] Message-ID: <20041105080012.31765.qmail@sourceware.org> (raw) In-Reply-To: <20040924070254.17647.uros@kss-loka.si> ------- Additional Comments From uros at kss-loka dot si 2004-11-05 08:00 ------- Another comment on code in comment #3: LEA instruction uses only 32bit constant as a displacement. The code size of inner loop is considerably bigger in gcc-4.0 compiled code. (Note that LEA with a scale factor should be replaced by a shift in P4 case...) Another feature would be to use an %ecx as a count register in inner loops. In this case, TARGET_USE_LOOP architectures (such as K6) could use a loop insn for inner loops. gcc-4.0 (21 bytes) 23: 8d 04 d5 00 00 00 00 lea 0x0(,%edx,8),%eax 2a: dd 04 01 fldl (%ecx,%eax,1) 2d: dd 1c 03 fstpl (%ebx,%eax,1) 30: 83 c2 01 add $0x1,%edx 33: 39 55 0c cmp %edx,0xc(%ebp) 36: 7f eb jg 23 <LU_copy_matrix+0x23> gcc-3.2 (13 bytes): 22: dd 04 c2 fldl (%edx,%eax,8) 25: dd 1c c1 fstpl (%ecx,%eax,8) 28: 83 c0 01 add $0x1,%eax 2b: 39 f0 cmp %esi,%eax 2d: 7c f3 jl 22 <LU_copy_matrix+0x22> -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17647
next prev parent reply other threads:[~2004-11-05 8:00 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-09-24 7:03 [Bug target/17647] New: " uros at kss-loka dot si 2004-09-24 13:19 ` [Bug tree-optimization/17647] " pinskia at gcc dot gnu dot org 2004-09-27 8:52 ` bonzini at gcc dot gnu dot org 2004-11-04 9:33 ` uros at kss-loka dot si 2004-11-05 8:00 ` uros at kss-loka dot si [this message] 2004-11-13 20:15 ` [Bug rtl-optimization/17647] " pinskia at gcc dot gnu dot org 2004-11-25 23:37 ` [Bug tree-optimization/17647] " pinskia at gcc dot gnu dot org 2004-11-26 8:50 ` uros at gcc dot gnu dot org 2004-11-26 15:40 ` pinskia at gcc dot gnu dot org 2004-12-05 4:29 ` 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=20041105080012.31765.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).