From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 48427 invoked by alias); 12 Aug 2019 21:52:31 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 48378 invoked by uid 89); 12 Aug 2019 21:52:31 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy= X-HELO: gate.crashing.org Received: from gate.crashing.org (HELO gate.crashing.org) (63.228.1.57) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 12 Aug 2019 21:52:29 +0000 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id x7CLqP9r012385; Mon, 12 Aug 2019 16:52:25 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id x7CLqOvE012384; Mon, 12 Aug 2019 16:52:24 -0500 Date: Mon, 12 Aug 2019 21:52:00 -0000 From: Segher Boessenkool To: Joseph Myers Cc: Tejas Joshi , gcc@gcc.gnu.org, Martin Jambor , hubicka@ucw.cz Subject: Re: Expansion of narrowing math built-ins into power instructions Message-ID: <20190812215224.GC31406@gate.crashing.org> References: <20190731144722.GS31406@gate.crashing.org> <20190808200514.GL31406@gate.crashing.org> <20190811165916.GX31406@gate.crashing.org> <20190812175450.GB31406@gate.crashing.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg00098.txt.bz2 On Mon, Aug 12, 2019 at 09:20:18PM +0000, Joseph Myers wrote: > On Mon, 12 Aug 2019, Segher Boessenkool wrote: > > > (define_insn "add_truncdfsf3" > > [(set (match_operand:SF 0 "gpc_reg_operand" "=f,wa") > > (float_truncate:SF > > (plus:DF (match_operand:DF 1 "gpc_reg_operand" "%d,wa") > > (match_operand:DF 2 "gpc_reg_operand" "d,wa"))))] > > That sort of pattern is incorrect for a fused operation such as fadd, > because combine could match it for code that is supposed to do separate > addition and narrowing conversion. The RTL needs to be something that > does *not* match the combination of separate operations (just as fma has > its own RTL, and a separate pass is responsible for converting separate > operations to fused ones in the -ffp-contract=fast case where it's > permitted). Ugh, we allow disabling contraction, I forgot. Rats. Segher