From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by sourceware.org (Postfix) with ESMTP id D9CB23971C6C for ; Mon, 19 Oct 2020 21:22:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D9CB23971C6C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=segher@kernel.crashing.org Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 09JLKdYi024391; Mon, 19 Oct 2020 16:20:39 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 09JLKc14024390; Mon, 19 Oct 2020 16:20:38 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Mon, 19 Oct 2020 16:20:37 -0500 From: Segher Boessenkool To: Henri Cloetens Cc: gcc-help@gcc.gnu.org Subject: Re: Issue during combine. Message-ID: <20201019212037.GV2672@gate.crashing.org> References: <2ade57f1-ff38-553c-0e06-1cbb445f5d4e@blueice.be> <20201019192839.GR2672@gate.crashing.org> <7eb8f9b2-1960-634e-7f62-6dfc35077ff5@blueice.be> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7eb8f9b2-1960-634e-7f62-6dfc35077ff5@blueice.be> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00, BODY_8BITS, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, TXREP, T_SPF_HELO_PERMERROR, T_SPF_PERMERROR autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2020 21:22:24 -0000 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