From patchwork Thu Oct 10 01:55:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kugan Vivekanandarajah X-Patchwork-Id: 175696 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1560436ill; Wed, 9 Oct 2019 18:56:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKiP3oD5wWHhktDG6eNjaTUMc7Tjr9gkKjiNCeurSGi+3lz61NuJJQ0t2XR401RZWZXNw2 X-Received: by 2002:a17:906:f254:: with SMTP id gy20mr5957771ejb.180.1570672577765; Wed, 09 Oct 2019 18:56:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570672577; cv=none; d=google.com; s=arc-20160816; b=aL+ETMgiYPEKhWaYbid3Wm823fBqFzIPFCZWL5ub8UuqkKpQY+lVZzAsUeFcibXhUy xVuKUzQAKy7vj52auFkIBtKVEt2c++I5FuF97VYYAgaxYueouIVp+l6yLKy81NWlAOpb nKn1QEv5fuY0G82VYfutg0ESNXnA+vNRxfgrEVMc7LtRqHHPHW0q+HAsuULda9JEcOGs x8uHyEDIi+hG3NHgjTc1D7kG0hP7b50+pzPvXufCFycqnlaffXka/MqLPeI7Yh/4tfrp u6DXkr/Thkjd7puC3e8Tl5OlhddcGOCFJfz0Vp5w8yE5J7GMzQid9pLYNP/Bg8H4fOJi VQ3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:dkim-signature :delivered-to:sender:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature; bh=ucvda7pLVN+mFNJEfB0pV9RSTEoMZ1YLZm3SG/uI1mk=; b=ucETOBND6ROO40bYDwdT45be7pjPJy0UWxm44qaKTTk3sNZ1PTw642K4MY/HGRnxZp aG6PdZSLkuaGZrvkMbpbMskZhIBILcM6Sz9YOQ66kJ4VB1uikUNrPCEnbuxJg2NiYS+z uvnELiBynou65MooGXqbgYkZICDSNSU/jAn52pWbTygY4fGDa90M3vytS8KzDuy/oOfp 6WMuuemSV1yrN9PSI24nrOO36D7dLgD9FLMeHqkRftmIoZjwx/CeCEIu71805h0ADhTi l68fzE9jdIherlIXTfZr9g6lq+RkbZG+PbhQfqxSYWkWCLZV7BbfrQxXiVl9sNpGsARZ LcWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=ZnRz+UwJ; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="IFoAC/T9"; spf=pass (google.com: domain of gcc-patches-return-510592-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-510592-patch=linaro.org@gcc.gnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id m12si2438848edc.50.2019.10.09.18.56.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Oct 2019 18:56:17 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-510592-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=ZnRz+UwJ; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="IFoAC/T9"; spf=pass (google.com: domain of gcc-patches-return-510592-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-510592-patch=linaro.org@gcc.gnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=GlXdNf7MzXsz3h1JBucemYmu/TJY4tlVfruaBsTp7ndFN7 TBXqCzrTwTxyXo1iymOW9ir1D9vIFu0FtyDgVmHwDSHAIq3HrBMlTbZ5I9vi4xwk yVqV6JA4olzjOAUceLUGvBag3y9H8NQjVmfRTFnIKHUmOX9uIZ2LtGp43ToaU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=tt9W7Qv0tVSZfYkEYYQ2LMTJJeg=; b=ZnRz+UwJmUTpJg421Dgk LTRn7h5cDAMtrT13mzf9hwmUvyAgzPORddc6bLf3EwOVJVCuI2KS9P8ITEdRT9OV CfrIL5dFGeQGnz549L/cTUPCVTUvZNZSpsfkxOrfCFcWKN2DTBE7jajnsY/kBpYc 5tuKK8ZZoumh54ju3+gTxHA= Received: (qmail 112600 invoked by alias); 10 Oct 2019 01:56:04 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk 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 112592 invoked by uid 89); 10 Oct 2019 01:56:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:2612, linaro X-HELO: mail-lj1-f171.google.com Received: from mail-lj1-f171.google.com (HELO mail-lj1-f171.google.com) (209.85.208.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 10 Oct 2019 01:56:02 +0000 Received: by mail-lj1-f171.google.com with SMTP id q64so4430433ljb.12 for ; Wed, 09 Oct 2019 18:56:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to; bh=aEFQ9p4mqm69twUZjFWKFDtKZ6kT1zcr3mpsHC4iZq0=; b=IFoAC/T9m9z+QkDw/yMO7Z9Bi1P+eKyBhgRCshFwRvwOH7RGTL5CfcdTqnAG8HDyX9 hwD8mfDQe5totvgoNUYHUzMTYB7LQoPK5+1QEM/UDAoDBKWL+7w0vwZqehOtKIfNbc6h zsde3Dv8Dxyq5iuNnxCOue+77ig5MOtB8Oi2M04oKPtJQdZCCZwhWmFiKXPJCZteE8Y3 2f+TEg5OS6dAJzk0LclEqXvFvwWcHwzLr1eEyAHNORbnmOXzSLy97bKqGJAjaUe0/ncA XQOTq9EupHnH6IFiJGTUZYFoi3TfVX301sPD38CLGqLzBehwSQUn/S5fr0CWJr4uSLuG zr5w== MIME-Version: 1.0 From: Kugan Vivekanandarajah Date: Thu, 10 Oct 2019 12:55:23 +1100 Message-ID: Subject: [ARM] Enable DF only when TARGET_VFP_DOUBLE To: GCC Patches , Kyrill Tkachov X-IsSubscribed: yes As reported in Linaro bug report (https://bugs.linaro.org/show_bug.cgi?id=4636 ; there is no reproducible testcase provided), for some applications, we see (insn 126 125 127 9 (set (reg:DF 189) (fma:DF (reg:DF 126 [ _74 ]) (reg:DF 190) (reg:DF 191))) "ops.c":30 -1 (nil)) This looks like due to a typo in the md patterns. Attached patch fixes this. Bootsrapped and regression tested on arm-linux-gnueabihf without any regressions. Is this OK for trunk? Thanks, Kugan gcc/ChangeLog: 2019-10-10 kugan.vivekanandarajah * config/arm/vfp.md (fma4): Enable DF only when TARGET_VFP_DOUBLE. (*fmsub4): Likewise. (*fnmsub4): Likewise. (*fnmadd4): Likewise. diff --git a/gcc/config/arm/vfp.md b/gcc/config/arm/vfp.md index 661919e2357..1979aa6fdb4 100644 --- a/gcc/config/arm/vfp.md +++ b/gcc/config/arm/vfp.md @@ -1321,7 +1321,7 @@ (fma:SDF (match_operand:SDF 1 "register_operand" "") (match_operand:SDF 2 "register_operand" "") (match_operand:SDF 3 "register_operand" "0")))] - "TARGET_32BIT && TARGET_HARD_FLOAT && TARGET_FMA" + "TARGET_32BIT && TARGET_HARD_FLOAT && TARGET_FMA " "vfma%?.\\t%0, %1, %2" [(set_attr "predicable" "yes") (set_attr "type" "ffma")] @@ -1357,7 +1357,7 @@ "")) (match_operand:SDF 2 "register_operand" "") (match_operand:SDF 3 "register_operand" "0")))] - "TARGET_32BIT && TARGET_HARD_FLOAT && TARGET_FMA" + "TARGET_32BIT && TARGET_HARD_FLOAT && TARGET_FMA " "vfms%?.\\t%0, %1, %2" [(set_attr "predicable" "yes") (set_attr "type" "ffma")] @@ -1379,7 +1379,7 @@ (fma:SDF (match_operand:SDF 1 "register_operand" "") (match_operand:SDF 2 "register_operand" "") (neg:SDF (match_operand:SDF 3 "register_operand" "0"))))] - "TARGET_32BIT && TARGET_HARD_FLOAT && TARGET_FMA" + "TARGET_32BIT && TARGET_HARD_FLOAT && TARGET_FMA " "vfnms%?.\\t%0, %1, %2" [(set_attr "predicable" "yes") (set_attr "type" "ffma")] @@ -1402,7 +1402,7 @@ "")) (match_operand:SDF 2 "register_operand" "") (neg:SDF (match_operand:SDF 3 "register_operand" "0"))))] - "TARGET_32BIT && TARGET_HARD_FLOAT && TARGET_FMA" + "TARGET_32BIT && TARGET_HARD_FLOAT && TARGET_FMA " "vfnma%?.\\t%0, %1, %2" [(set_attr "predicable" "yes") (set_attr "type" "ffma")]