public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/59649] [4.9 regression] conftest.c miscompiled
Date: Tue, 07 Jan 2014 19:17:00 -0000	[thread overview]
Message-ID: <bug-59649-4-XbJPfm0i0O@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-59649-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Two out of the 3 get_mode_bounds calls pass the same mode as the first and
third argument, so in that case it would be BImode in both cases and even
before Nick's change while min_val/max_val would be -128/127 for signed and
0/255 otherwise,
as the value is then trunc_int_for_mode (into BImode again), which will return
STORE_FLAG_VALUE for & 1 and 0 otherwise, the function returned 0 and
STORE_FLAG_VALUE (for STORE_FLAG_VALUE == -1 a wrong thing to do supposedly,
but that is not the case of ia64).
I wonder if get_mode_bounds is ever called with BImode and some wider mode,
that would mean there would need to be a conversion of some wider mode to
BImode in the IL I think, which is quite unlikely.  Normally BImode is the
result of some comparison instead.


  parent reply	other threads:[~2014-01-07 19:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-31 11:27 [Bug rtl-optimization/59649] New: " schwab@linux-m68k.org
2013-12-31 13:24 ` [Bug rtl-optimization/59649] " schwab@linux-m68k.org
2014-01-02 14:52 ` ebotcazou at gcc dot gnu.org
2014-01-06  9:39 ` jakub at gcc dot gnu.org
2014-01-06  9:59 ` ebotcazou at gcc dot gnu.org
2014-01-07 18:05 ` jakub at gcc dot gnu.org
2014-01-07 19:17 ` jakub at gcc dot gnu.org [this message]
2014-01-07 23:05 ` ebotcazou at gcc dot gnu.org
2014-01-08 10:01 ` [Bug rtl-optimization/59649] [4.9 regression] BImode miscompiled jakub at gcc dot gnu.org
2014-01-08 10:02 ` jakub 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=bug-59649-4-XbJPfm0i0O@http.gcc.gnu.org/bugzilla/ \
    --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).