From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 118670 invoked by alias); 9 Oct 2015 14:35:49 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 118659 invoked by uid 89); 9 Oct 2015 14:35:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qk0-f172.google.com Received: from mail-qk0-f172.google.com (HELO mail-qk0-f172.google.com) (209.85.220.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 09 Oct 2015 14:35:46 +0000 Received: by qkas79 with SMTP id s79so33202716qka.0 for ; Fri, 09 Oct 2015 07:35:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=FeJOcZ/XqIhbKSMZTGrbkadG3wICehwLlGOm3AkX+YY=; b=mK/L0tB/C4mWwXMe7fINJVArFK3Hn5CiZN3vciryvtzsPkwhe1R1NiWADy+NIEBsCB X+jhwMQvv9PCoozlBXsN9m33K4U0/vlhEX7e0WLdqCkT1MrYtdFxuvgHXu2eIMOTcsJQ fpqvm58y0YAItcBvvbrx5aIs0tGqIUwyR3+CS2hDms0OATPipJApnT8kAtjCAjchiO1I aXOfRq7yJ8JXbWixDKALmUwP8HDyBCh6vJshKtec3OzW8AOR5d2FY1qzs2pH0k3Bc3JM QTb+q9jDv3aarhntA1O1VJ+O8AMdyXKqnyoh+I57ncpmTmUHb02AZaT5X6x4mqEEe3aL gO3Q== X-Gm-Message-State: ALoCoQlZVQSfTlqogVsXWr+C1wPn+mYixzg/3uzBd3v1CqHfO8ol3rJ3O1sAtkUHHOtxWeiUzMWc MIME-Version: 1.0 X-Received: by 10.55.42.73 with SMTP id q70mr15923284qkh.22.1444401344192; Fri, 09 Oct 2015 07:35:44 -0700 (PDT) Received: by 10.140.44.10 with HTTP; Fri, 9 Oct 2015 07:35:44 -0700 (PDT) In-Reply-To: <87twq19u6s.fsf@e105548-lin.cambridge.arm.com> References: <87k2r1bb0p.fsf@e105548-lin.cambridge.arm.com> <87twq19u6s.fsf@e105548-lin.cambridge.arm.com> Date: Fri, 09 Oct 2015 14:35:00 -0000 Message-ID: Subject: Re: Move sqrt and cbrt simplifications to match.pd From: Christophe Lyon To: "gcc-patches@gcc.gnu.org" , Richard Sandiford Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg00983.txt.bz2 On 8 October 2015 at 18:55, Richard Sandiford wrote: > Marc Glisse writes: >> On Mon, 5 Oct 2015, Richard Sandiford wrote: >> >>> + /* cbrt(sqrt(x)) -> pow(x,1/6). */ >>> + (simplify >>> + (sqrts (cbrts @0)) >>> + (pows @0 { build_real_truncate (type, dconst<1, 6> ()); })) >>> + /* sqrt(cbrt(x)) -> pow(x,1/6). */ >>> + (simplify >>> + (cbrts (sqrts @0)) >>> + (pows @0 { build_real_truncate (type, dconst<1, 6> ()); })) >> >> I think you swapped the comments (not that it matters). > > Thanks, fixed in the committed version. > > Richard > Hi Richard, Since you committed this patch, I've noticed that gcc.dg/builtins-10.c fails on arm-none-linux-gnueabi targets (as opposed to arm-none-linux-gnueabihf). gcc.log shows: /cchfHDHc.o: In function `test': builtins-10.c:(.text+0x60): undefined reference to `link_error' collect2: error: ld returned 1 exit status Does this ring a bell? Christophe.