From patchwork Tue May 13 06:18:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramana Radhakrishnan X-Patchwork-Id: 30001 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 132EC203F3 for ; Tue, 13 May 2014 06:19:07 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id m1sf44794434oag.6 for ; Mon, 12 May 2014 23:19:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mailing-list:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:sender :delivered-to:message-id:date:from:user-agent:mime-version:to :subject:x-original-sender:x-original-authentication-results :content-type; bh=ZRkOc7ebTnEbRn1lrzlk27x8ngB0WTzJ1U5HC/YkgdY=; b=FTi0cAMH+aCLp0uYdR7ISFMaJQ9KJF7TBSLuwYtovI6+zcEg3j+3r0NtTj4HuoblAN hq8rOqQuZjMPcU+HXh5FMyQq8YXYRdGAzKO8ogRzwmEJZP2tzSxd3f1pgM2/qZwSJckl 3PnIhwZfbrD4jNYu7LJcnNBQYQXupoXATpS1u0jr2OBr3dxsWIeNeWamtyhur/SQTDtU T1HqHCabA71t+0EAGqWt9kEFkgZQSlqUYYHGOyGtfvHCXPtL1mW/FFV6lM0GBrezYTDy W4EDnEGvm0oz5A/W6hj6onfixOgETCHbH2wJ8ZsRwigjOSsFNjJloshrhLLzXuGsO8dK hnmg== X-Gm-Message-State: ALoCoQmY/HNLWQYsXlxn1XvhVoiNjmkhkNTYEp4Low74LDj8cOseudVkkxB7Tbkw8p6tyVLDxsft X-Received: by 10.182.53.198 with SMTP id d6mr16629579obp.29.1399961946851; Mon, 12 May 2014 23:19:06 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.41.178 with SMTP id z47ls506170qgz.93.gmail; Mon, 12 May 2014 23:19:06 -0700 (PDT) X-Received: by 10.58.18.198 with SMTP id y6mr5632033ved.31.1399961946746; Mon, 12 May 2014 23:19:06 -0700 (PDT) Received: from mail-ve0-x22c.google.com (mail-ve0-x22c.google.com [2607:f8b0:400c:c01::22c]) by mx.google.com with ESMTPS id tv3si2473067vdc.36.2014.05.12.23.19.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 12 May 2014 23:19:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c01::22c as permitted sender) client-ip=2607:f8b0:400c:c01::22c; Received: by mail-ve0-f172.google.com with SMTP id oz11so10081482veb.17 for ; Mon, 12 May 2014 23:19:06 -0700 (PDT) X-Received: by 10.52.125.198 with SMTP id ms6mr1578223vdb.28.1399961946551; Mon, 12 May 2014 23:19:06 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp125898vcb; Mon, 12 May 2014 23:19:05 -0700 (PDT) X-Received: by 10.68.134.198 with SMTP id pm6mr3023924pbb.9.1399961944473; Mon, 12 May 2014 23:19:04 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id pp3si12234546pac.103.2014.05.12.23.19.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 May 2014 23:19:04 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-367296-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 25221 invoked by alias); 13 May 2014 06:18:51 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 25205 invoked by uid 89); 13 May 2014 06:18:50 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: collaborate-mta1.arm.com Received: from fw-tnat.austin.arm.com (HELO collaborate-mta1.arm.com) (217.140.110.23) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 13 May 2014 06:18:49 +0000 Received: from [10.1.209.147] (e104577-lin.cambridge.arm.com [10.1.209.147]) by collaborate-mta1.arm.com (Postfix) with ESMTPS id 37DF113F884 for ; Tue, 13 May 2014 01:18:47 -0500 (CDT) Message-ID: <5371B945.4040400@arm.com> Date: Tue, 13 May 2014 07:18:45 +0100 From: Ramana Radhakrishnan User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org ;" Subject: [Patch ARM/testsuite] Mark pr48329.f90 as unsupported on AArch32 X-IsSubscribed: yes X-Original-Sender: ramana.radhakrishnan@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c01::22c as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@gcc.gnu.org X-Google-Group-Id: 836684582541 The AArch32 SIMD unit doesn't have vector floating point divide. Handled thusly. I've chosen to inherit vector floating point divide support from target_vect_float. If this doesn't work for all targets, they can choose to override it here otherwise. Tested cross with the testcase on arm-none-linux-gnueabihf noting that the test is now UNSUPPORTED. Ok to apply ? regards Ramana Ramana Radhakrishnan * lib/target-supports.exp (check_effective_target_vect_float_divide): New. * gfortran.dg/vect/pr48329.f90: Use this. Ramana Radhakrishnan * doc/sourcebuild.texi (vect_float_divide): Document. commit a62464b026474aeb2cb1c67b0e7e03287a1fcc4f Author: Ramana Radhakrishnan Date: Tue May 13 07:13:16 2014 +0100 Unsupport test for ARM neon with vector floating point divide. diff --git a/gcc/testsuite/gfortran.dg/vect/pr48329.f90 b/gcc/testsuite/gfortran.dg/vect/pr48329.f90 index 6ad03d4..b621a21 100644 --- a/gcc/testsuite/gfortran.dg/vect/pr48329.f90 +++ b/gcc/testsuite/gfortran.dg/vect/pr48329.f90 @@ -1,6 +1,7 @@ ! { dg-do compile } ! { dg-require-effective-target vect_float } ! { dg-require-effective-target vect_intfloat_cvt } +! { dg-require-effective-target vect_float_divide } ! { dg-additional-options "-ffast-math" } program calcpi diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 6ab414a..fbd7474 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -2059,6 +2059,25 @@ proc check_effective_target_vect_int { } { return $et_vect_int_saved } +proc check_effective_target_vect_float_divide { } { + + global et_vect_float_divide_saved + + if [info exists et_vect_float_divide_saved] { + verbose "check_effective_target_vect_divide_saved: using cached result" 2 + } else { + set et_vect_float_divide_saved [check_effective_target_vect_float] + if { ([istarget arm*-*-*] + && [check_effective_target_arm_neon_ok])} { + set et_vect_float_divide_saved 0 + } + } + + verbose "check_effective_target_vect_float_divide: returning $et_vect_float_divide_saved" 2 + return $et_vect_float_divide_saved + +} + # Return 1 if the target supports signed int->float conversion #