public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "debian-gcc at lists dot debian dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/23837] New: [4.0, 4.1 regression] Wrong code with -fschedule-insns
Date: Mon, 12 Sep 2005 19:01:00 -0000	[thread overview]
Message-ID: <20050912190132.23837.debian-gcc@lists.debian.org> (raw)

[forwarded from http://bugs.debian.org/326026]

falk@paer:~% cat test.c
void abort(void);

unsigned long long f(unsigned long long x) {
    return ((x >> 8) | (x << 56)) ^ ((x >> 48) | (x << 16)) ^ (x >> 1);
}

int main() {
    volatile unsigned long long v = 0x1122334455667788ULL;
    if (f(v) != 0xb3c46ef7196e4c91ULL)
        abort();
    return 0;
}

falk@paer:~% gcc-4.0 -O1 -fno-schedule-insns test.c && ./a.out
falk@paer:~% gcc-4.0 -O1 -fschedule-insns test.c && ./a.out   
zsh: abort (core dumped)  ./a.out

Reproduced with 4.0.2 20050821 on hppa-linux and with 4.1.0 20050705 on
i686-linux.

-- 
           Summary: [4.0, 4.1 regression] Wrong code with -fschedule-insns
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


             reply	other threads:[~2005-09-12 19:01 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-12 19:01 debian-gcc at lists dot debian dot org [this message]
2005-09-12 19:05 ` [Bug rtl-optimization/23837] [4.0/4.1 " pinskia at gcc dot gnu dot org
2005-09-13  9:04 ` jakub at gcc dot gnu dot org
2005-09-19 19:43 ` janis187 at us dot ibm dot com
2005-09-19 21:04 ` amylaar at gcc dot gnu dot org
2005-09-20 19:08 ` amylaar at gcc dot gnu dot org
2005-09-20 20:52 ` amylaar at gcc dot gnu dot org
2005-09-22 17:37 ` joern dot rennecke at st dot com
2005-09-23 12:06 ` cvs-commit at gcc dot gnu dot org
2005-09-27 15:57 ` mmitchel 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=20050912190132.23837.debian-gcc@lists.debian.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).