public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ami_stuff at o2 dot pl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/42522] [m68k] Wrong code generated with -O2/-O3
Date: Tue, 29 Dec 2009 01:20:00 -0000	[thread overview]
Message-ID: <20091229012001.20699.qmail@sourceware.org> (raw)
In-Reply-To: <bug-42522-17839@http.gcc.gnu.org/bugzilla/>



------- Comment #6 from ami_stuff at o2 dot pl  2009-12-29 01:20 -------
> Works for me with 4.5.0 20091228.

How's that possible? What about GCC 4.4 branch? I just checked with ATARI GCC
4.4.2 m68k compiler and got the same result:

/usr/local/cross-mint/bin/m68k-atari-mint-gcc -c -S flvdec_O2.i -m68060 -O2:

_flv_probe:
        link.w %fp,#0
        clr.l %d0
        unlk %fp
        rts
        .even

/usr/local/cross-mint/bin/m68k-atari-mint-gcc -c -S flvdec_O2.i -m68060 -O2
-fno-cse-follow-jumps

_flv_probe:
        link.w %fp,#0
        move.l 8(%fp),%a0
        move.l 4(%a0),%a0
        cmp.b #70,(%a0)
        jeq .L6
.L2:
        clr.l %d0
        unlk %fp
        rts
.L6:
        cmp.b #76,1(%a0)
        jne .L2
        cmp.b #86,2(%a0)
        jne .L2
        cmp.b #4,3(%a0)
        jhi .L2
        tst.b 5(%a0)
        jne .L2
        move.l 5(%a0),%d0
        moveq #8,%d1
        cmp.l %d0,%d1
        jcc .L2
        moveq #100,%d0
        unlk %fp
        rts
        .even

$ /usr/local/cross-mint/bin/m68k-atari-mint-gcc -v
Using built-in specs.
Target: m68k-atari-mint
Configured with: ../gcc-4.4.2-mint-20091017/configure --target=m68k-atari-mint
-
-prefix=/usr/local/cross-mint --enable-languages=c,c++ --disable-nls
--disable-l
ibstdcxx-pch --mandir='/man' --infodir='/info'
Thread model: single
gcc version 4.4.2 (MiNT 20091017) (GCC)

http://vincent.riviere.free.fr/soft/m68k-atari-mint/


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42522


  parent reply	other threads:[~2009-12-29  1:20 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-28 20:15 [Bug c/42522] New: " ami_stuff at o2 dot pl
2009-12-28 20:18 ` [Bug c/42522] " ami_stuff at o2 dot pl
2009-12-28 20:23 ` [Bug target/42522] " pinskia at gcc dot gnu dot org
2009-12-28 20:39 ` [Bug c/42522] " ami_stuff at o2 dot pl
2009-12-28 23:31 ` schwab at linux-m68k dot org
2009-12-28 23:38 ` ami_stuff at o2 dot pl
2009-12-29  1:20 ` ami_stuff at o2 dot pl [this message]
2009-12-29 11:58 ` schwab at linux-m68k dot org
2009-12-29 18:52 ` nospamname at web dot de
2009-12-31 13:35 ` nospamname at web dot de
2009-12-31 17:01 ` mikpe at it dot uu dot se
2009-12-31 17:06 ` [Bug target/42522] " jsm28 at gcc dot gnu dot org
2009-12-31 18:04 ` nospamname at web dot de
2010-01-17 22:27 ` [Bug rtl-optimization/42522] (zero_extract:SI (mem:QI) ...) misoptimized schwab at linux-m68k dot org
2010-01-17 22:35 ` schwab at linux-m68k dot org
2010-01-18 10:26 ` rguenth at gcc dot gnu dot org
2010-05-09 13:54 ` ami_stuff at o2 dot pl

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=20091229012001.20699.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: link
Be 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).