From patchwork Fri Nov 8 10:54:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 178868 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp2504741ilf; Fri, 8 Nov 2019 02:54:40 -0800 (PST) X-Google-Smtp-Source: APXvYqziwBcmfpQ6nah6DUtNLPsXhGOTYDuITGGsPY1FzakvM+9pV83o2Mpg+8NskOj6thpGpnhL X-Received: by 2002:a17:906:3458:: with SMTP id d24mr8041688ejb.271.1573210480860; Fri, 08 Nov 2019 02:54:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573210480; cv=none; d=google.com; s=arc-20160816; b=J46VJV8Fk1lMlYb/drzVEZZPqfxtc0AWUeIlPVHOs716IJD/yS2eQLY0bcH7KiFMzF Lla98NlvNYem/cheRQnG17+eMQzqFIhI4S+P7wQUHfO/R/+IH+03T7jBpc6/rR2WUpYV boN4GxkDTO5BbjVu7nfH6lGpg8FtoZ5aluth2R3NoXQ8YpU2fyku3k2YljWlaYmVBRa4 +oqWKL3uL60GU/K22OZY5ykNBFj0SZ444HNx6qtYfJleKIMV3PKAclC6Gb3Gi/CUA75m OEJGw6Eb5kBArErQkR0reqlDjQq3QlbNzbvV9osExwLJvF92b1MGYGDQJxZC/rsKESFp 2wug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature:delivered-to :sender:list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mailing-list:dkim-signature:domainkey-signature; bh=qHeO6ib4z4P0sW9PCUphh7Cl0XhE3F2lkx4ITvDji+M=; b=ZADwKF/sYAdzLBtMbRLfvJrwVIqjCU5UoYhjMQ5/+7b11fuVpnpg3FgJ2NVtdXi8EX 1DqLPuJIW1ABO/0JEqv1iY9Mi8WEwLnb2hMq2tas5FIdMsHEbrUZBjHfviPzNVSfjyQT 9xPXdU8njrOwyXCb1GZ3VUlKxa2g9pBnnGi0wLhLdGjCglzzM4RDwcaW4UWf+13qByAU cZ2czu+KYHF/1FyGWT59bwT8HEvH+TWSVfKuJVX9+nEQ9BmN59fI5iGXgv+TvPZqwPoH NEh1mNbxMHZSDaz8DXFPuMP1VUpUyExC8xmMxDsOY0LfsZ9brBNCvvHraxaEPn53S+OO 9Qig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=GXRp0iAY; dkim=pass header.i=@linaro.org header.s=google header.b=ZCyee8V9; spf=pass (google.com: domain of gcc-patches-return-512801-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-512801-patch=linaro.org@gcc.gnu.org"; dmarc=pass (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 p48si3897134eda.348.2019.11.08.02.54.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Nov 2019 02:54:40 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-512801-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=GXRp0iAY; dkim=pass header.i=@linaro.org header.s=google header.b=ZCyee8V9; spf=pass (google.com: domain of gcc-patches-return-512801-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-512801-patch=linaro.org@gcc.gnu.org"; dmarc=pass (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:from :to:cc:subject:date:message-id; q=dns; s=default; b=eqZtCmsFaOtB VGR3oOUuZhHAXhZZ56OtxCeNyS8W59EO4xe3BfU1vYrnU7kSg7TeZoMKKMbfNRrX WHuXD+7K6WY4KM5+FhSivvd82pQ12spbEmwCD7i6/h483Bc3ujJAmhxRgJXMn1aT JWDE0/9Ht/cmWMhojDj5dD5k9AuHrCA= 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:from :to:cc:subject:date:message-id; s=default; bh=IYGCOJEGlsx22YyWoH qgvqFuWoY=; b=GXRp0iAYCeKPv5fHnvoDORe75g/lebAl3fDX9mA63gKgfXNUpg YZ7FOcou2m10558BNEWIkWbonk9KFOGclXTwzEMlNZhspZBcLdqjUJDoRKe7Lajt UsSqSvUHaQiD4IdVhGq7wBpBnpbAEmOYfDt7JaItV2ndTfQASvsTlqMRY= Received: (qmail 105484 invoked by alias); 8 Nov 2019 10:54:26 -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 105446 invoked by uid 89); 8 Nov 2019 10:54:25 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-11.4 required=5.0 tests=BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:2179 X-HELO: mail-wr1-f67.google.com Received: from mail-wr1-f67.google.com (HELO mail-wr1-f67.google.com) (209.85.221.67) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 08 Nov 2019 10:54:24 +0000 Received: by mail-wr1-f67.google.com with SMTP id b3so6459612wrs.13 for ; Fri, 08 Nov 2019 02:54:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=qHeO6ib4z4P0sW9PCUphh7Cl0XhE3F2lkx4ITvDji+M=; b=ZCyee8V9LrN36uo7/D/QlspTrqZNQ++nwluf8nQ/IWfdbMlNS2M0+Mji4CamGKRyNe HZoLMvKuYRQZOAYYMWLt3ezgV4HlmP9PnSy8JMHpNEkckuFcguJ56cTr0z2/+dMJU/19 gkvdt6AAAqvWAfqaK8VfUBdQ/6kyViB8Wm1ubd3N1QtGFYOEJ1HFy2Vjgkc4FMbAAMwm ryTXk0DOTv3dmjjLoQbvufPF+mMVAduwMkFPI/9316fZSk45zFRTZhTq2R80ES72M2Gq fjtCZ/tAIfHUxqDFR2rqkKSWqEcFqHd3GzQUqGpjsRhwce7yXE9XMoYEBt244nMV56xE MeuQ== Return-Path: Received: from localhost.localdomain (212.red-213-99-162.dynamicip.rima-tde.net. [213.99.162.212]) by smtp.gmail.com with ESMTPSA id 19sm8046565wrc.47.2019.11.08.02.54.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2019 02:54:21 -0800 (PST) From: Richard Henderson To: gcc-patches@gcc.gnu.org Cc: richard.earnshaw@arm.com, james.greenhalgh@arm.com, richard.sandiford@arm.com, marcus.shawcroft@arm.com, kyrylo.tkachov@arm.com Subject: [PATCH 0/6] Implement asm flag outputs for arm + aarch64 Date: Fri, 8 Nov 2019 11:54:02 +0100 Message-Id: <20191108105408.27584-1-richard.henderson@linaro.org> I've put the implementation into config/arm/aarch-common.c, so that it can be shared between the two targets. This required a little bit of cleanup to the CC modes and constraints to get the two targets to match up. I really should have done more than just x86 years ago, so that it would be done now and I could just use it in the kernel... ;-) r~ Richard Henderson (6): aarch64: Add "c" constraint arm: Fix the "c" constraint arm: Rename CC_NOOVmode to CC_NZmode arm, aarch64: Add support for __GCC_ASM_FLAG_OUTPUTS__ arm: Add testsuite checks for asm-flag aarch64: Add testsuite checks for asm-flag gcc/config/arm/aarch-common-protos.h | 6 + gcc/config/aarch64/aarch64-c.c | 2 + gcc/config/aarch64/aarch64.c | 3 + gcc/config/arm/aarch-common.c | 131 ++++++++++++ gcc/config/arm/arm-c.c | 1 + gcc/config/arm/arm.c | 15 +- gcc/testsuite/gcc.target/aarch64/asm-flag-1.c | 34 ++++ gcc/testsuite/gcc.target/aarch64/asm-flag-3.c | 36 ++++ gcc/testsuite/gcc.target/aarch64/asm-flag-5.c | 30 +++ gcc/testsuite/gcc.target/aarch64/asm-flag-6.c | 43 ++++ gcc/testsuite/gcc.target/arm/asm-flag-1.c | 35 ++++ gcc/testsuite/gcc.target/arm/asm-flag-3.c | 36 ++++ gcc/testsuite/gcc.target/arm/asm-flag-5.c | 30 +++ gcc/testsuite/gcc.target/arm/asm-flag-6.c | 43 ++++ gcc/config/aarch64/constraints.md | 4 + gcc/config/arm/arm-modes.def | 4 +- gcc/config/arm/arm.md | 186 +++++++++--------- gcc/config/arm/constraints.md | 5 +- gcc/config/arm/predicates.md | 2 +- gcc/config/arm/thumb1.md | 8 +- gcc/config/arm/thumb2.md | 34 ++-- gcc/doc/extend.texi | 33 ++++ 22 files changed, 596 insertions(+), 125 deletions(-) create mode 100644 gcc/testsuite/gcc.target/aarch64/asm-flag-1.c create mode 100644 gcc/testsuite/gcc.target/aarch64/asm-flag-3.c create mode 100644 gcc/testsuite/gcc.target/aarch64/asm-flag-5.c create mode 100644 gcc/testsuite/gcc.target/aarch64/asm-flag-6.c create mode 100644 gcc/testsuite/gcc.target/arm/asm-flag-1.c create mode 100644 gcc/testsuite/gcc.target/arm/asm-flag-3.c create mode 100644 gcc/testsuite/gcc.target/arm/asm-flag-5.c create mode 100644 gcc/testsuite/gcc.target/arm/asm-flag-6.c -- 2.17.1