From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 112525 invoked by alias); 6 Mar 2018 16:13:46 -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 112515 invoked by uid 89); 6 Mar 2018 16:13:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.6 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx3-rdu2.redhat.com (HELO mx1.redhat.com) (66.187.233.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 06 Mar 2018 16:13:44 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BB25C84221 for ; Tue, 6 Mar 2018 16:13:37 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-204-35.brq.redhat.com [10.40.204.35]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F08E72144B20 for ; Tue, 6 Mar 2018 16:13:34 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id w269QFbj024706; Tue, 6 Mar 2018 10:26:16 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id w269QEes024705; Tue, 6 Mar 2018 10:26:14 +0100 Date: Tue, 06 Mar 2018 16:13:00 -0000 From: Jakub Jelinek To: Richard Earnshaw , James Greenhalgh , Marcus Shawcroft Cc: gcc-patches@gcc.gnu.org Subject: Patch ping (Re: [PATCH] Fix aarch64_simd_reg_or_zero predicate (PR fortran/84565)) Message-ID: <20180306092614.GX5867@tucnak> Reply-To: Jakub Jelinek References: <20180227091251.GD5867@tucnak> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180227091251.GD5867@tucnak> User-Agent: Mutt/1.9.1 (2017-09-22) X-IsSubscribed: yes X-SW-Source: 2018-03/txt/msg00269.txt.bz2 Hi! I'd like to ping this patch, without or with the additional redundant (match_test "op == const0_rtx") line removal. > Bootstrapped/regtested on aarch64-linux (scratch Fedora gcc 8 package build > with the patch applied), ok for trunk? > > 2018-02-27 Jakub Jelinek > > PR fortran/84565 > * config/aarch64/predicates.md (aarch64_simd_reg_or_zero): Use > aarch64_simd_or_scalar_imm_zero rather than aarch64_simd_imm_zero. > > * gfortran.dg/pr84565.f90: New test. > > --- gcc/config/aarch64/predicates.md.jj 2018-02-06 13:13:06.305751221 +0100 > +++ gcc/config/aarch64/predicates.md 2018-02-26 16:30:01.902195208 +0100 > @@ -395,7 +395,7 @@ (define_predicate "aarch64_simd_reg_or_z > (and (match_code "reg,subreg,const_int,const_double,const,const_vector") > (ior (match_operand 0 "register_operand") > (match_test "op == const0_rtx") > - (match_operand 0 "aarch64_simd_imm_zero")))) > + (match_operand 0 "aarch64_simd_or_scalar_imm_zero")))) > > (define_predicate "aarch64_simd_struct_operand" > (and (match_code "mem") > --- gcc/testsuite/gfortran.dg/pr84565.f90.jj 2018-02-26 16:32:49.912271950 +0100 > +++ gcc/testsuite/gfortran.dg/pr84565.f90 2018-02-26 16:31:15.423223943 +0100 > @@ -0,0 +1,7 @@ > +! PR fortran/84565 > +! { dg-do compile { target aarch64*-*-* } } > +! { dg-options "-mlow-precision-sqrt -funsafe-math-optimizations" } > +subroutine mysqrt(a) > + real(KIND=KIND(0.0D0)) :: a > + a=sqrt(a) > +end subroutine Jakub