public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Segher Boessenkool <segher@kernel.crashing.org>
To: Henri Cloetens <henri.cloetens@blueice.be>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Issue during combine.
Date: Mon, 19 Oct 2020 16:20:37 -0500	[thread overview]
Message-ID: <20201019212037.GV2672@gate.crashing.org> (raw)
In-Reply-To: <7eb8f9b2-1960-634e-7f62-6dfc35077ff5@blueice.be>

On Mon, Oct 19, 2020 at 09:56:04PM +0200, Henri Cloetens wrote:
> - However, during the "checking", the combiner calls "simplify_subreg" 
> in simplify-rtx.c.
> - There, it crashes on "/gcc_assert(innermode != VOIDmode)/.

Because that is invalid RTL.

> /(insn 2354 2352 1743 175 (set (reg/v:SI 197 [ dig ])//
> //        (if_then_else (eq (subreg:QI (reg:SI 632) 1)//
> //                (const_int 1 [0x1]))//
> //            (reg:SI 708)//
> //            (reg/v:SI 197 [ dig ]))) 

This is incorrect already (should be if_then_else:SI).  It could have
crashed earlier...  You can configure with "--enable-checking=yes,rtl"
to find many such problems (default is just "yes", see the manual for
other things you can ask to be checked ("tree" is useful; some others
are very very slow)).

HtH,


Segher

  reply	other threads:[~2020-10-19 21:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-19 12:53 Henri Cloetens
2020-10-19 15:55 ` Henri Cloetens
2020-10-19 19:28   ` Segher Boessenkool
2020-10-19 19:56     ` Henri Cloetens
2020-10-19 21:20       ` Segher Boessenkool [this message]
2020-10-20 13:19 ` Richard Earnshaw
2020-10-20 15:01   ` Henri Cloetens
2020-10-20 15:48     ` Segher Boessenkool

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=20201019212037.GV2672@gate.crashing.org \
    --to=segher@kernel.crashing.org \
    --cc=gcc-help@gcc.gnu.org \
    --cc=henri.cloetens@blueice.be \
    /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).