From patchwork Wed Jan 25 11:26:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 48115 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp222781wrn; Wed, 25 Jan 2023 03:27:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXvHwyLt6l2Ksj2Zx4/FYF7nXuIxpcI+cz3OzgqeFheazLsWvnm4569LZuyuYTutjPc7tjQO X-Received: by 2002:a17:906:13d3:b0:84d:2fce:f325 with SMTP id g19-20020a17090613d300b0084d2fcef325mr32675922ejc.49.1674646075756; Wed, 25 Jan 2023 03:27:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674646075; cv=none; d=google.com; s=arc-20160816; b=DylKlr7xul96WC+rcz6rihQZzBFRDwSeAz7DmZIi6IR4w7mYK9/qKZ4h9C/l1vZ7vv foPNQ88GrCbFeuBT+0y1pfnNo9Wlqb90Z3xUrcsvj9zq4u/yAwAlJCm+goQUzV0/jwLS E3XBySRnAfrERpzFtL+r739OU1I6ZKnJmNkWGsZkouhU/tU8EE17gxNmej4EqbzdS1IV nxuBX3pdO5KmK9n/9+CBay6aZsmbTLh78Z8M11hJXKi9+z+Dg22q/4zXVeCb7cTcRIsI kUggNdQDJeDBdZ4KJsX6bF9EJYbu0uCk3GwqeAu8i4uO7uMr1LAin0vbo67M0rmiDkiM FtqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:mime-version :user-agent:message-id:date:subject:mail-followup-to:to:dmarc-filter :delivered-to:dkim-signature:dkim-filter; bh=5uU9eGEjxvnSmcVRRHXXj1kzoX04MohAxZGPlisc03c=; b=FKNUQh7yZKorLgMTiNAxz6r8afrNTmNy4PCXb2XSlnndRoB+aCPhIqCtT15MKwAnZU ajEXgJ7VGb50oz0lvaMuyOpqtIsi6VCTiFDDrjySGBCFNOqRL9PxWjM4mExrxNEDD4rG 7V0H1c8EIu5xcSIEyY2ZABj0vnMPbhzcsPk2QEqul/LsYOEQm2XjeN8i4kbAmVRKIisH Z9DfpP2pbU5gC93ZSmqx5oKL+0Nxcx915iwQ28lhFHzwlS3aF8Ki+q4WNEbRNkV6r3Ko Vks/6bzWk3wYVRl6MdXott/nuVWGjM/fN5dv+CVfBc8tW3Yyi26rOmevErxD5XkYD6Pa 4zNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=iv8hSl10; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id n28-20020a17090673dc00b0084e3eac843asi6615449ejl.883.2023.01.25.03.27.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jan 2023 03:27:55 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=iv8hSl10; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 451203858413 for ; Wed, 25 Jan 2023 11:27:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 451203858413 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674646056; bh=5uU9eGEjxvnSmcVRRHXXj1kzoX04MohAxZGPlisc03c=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=iv8hSl10ew8hPyT73VJ6URYFPYn1egluQAFWVMxPKYZ1xCiI4Usw8yKHP8M4V6tZ9 wfh7thgYfnSe5YLLQUWu4fwc0YoVKUeM4JLj5Xt//3fpgRoGbJmas3mLAGrtDQZZoC vdhHZroDfwpJCgH5QimYnpIafdz0CWfZIuD5Duj8= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id D20AB3858408 for ; Wed, 25 Jan 2023 11:26:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D20AB3858408 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 55F0C4B3 for ; Wed, 25 Jan 2023 03:27:25 -0800 (PST) Received: from localhost (e121540-lin.manchester.arm.com [10.32.99.50]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 32F663F71E for ; Wed, 25 Jan 2023 03:26:43 -0800 (PST) To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com Subject: [pushed] aarch64: Restore generation of SVE UQDEC instructions Date: Wed, 25 Jan 2023 11:26:41 +0000 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Spam-Status: No, score=-36.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_NONE, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, KAM_SHORT, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Richard Sandiford via Gcc-patches From: Richard Sandiford Reply-To: Richard Sandiford Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755993683584474195?= X-GMAIL-MSGID: =?utf-8?q?1755993683584474195?= The addition of TARGET_CSSC meant that we wouldn't generate SVE UQDEC instructions unless +cssc was also enabled. Fixes: - gcc.target/aarch64/sve/slp_4.c - gcc.target/aarch64/sve/slp_10.c - gcc.target/aarch64/sve/while_4.c Tested on aarch64-linux-gnu & pushed. Richard gcc/ * config/aarch64/aarch64.md (umax3): Separate the CNT and CSSC tests. --- gcc/config/aarch64/aarch64.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gcc/config/aarch64/aarch64.md b/gcc/config/aarch64/aarch64.md index e4d7587aac7..0b326d497b4 100644 --- a/gcc/config/aarch64/aarch64.md +++ b/gcc/config/aarch64/aarch64.md @@ -4457,8 +4457,9 @@ (define_expand "umax3" { if (aarch64_sve_cnt_immediate (operands[1], mode)) std::swap (operands[1], operands[2]); - else if (!aarch64_sve_cnt_immediate (operands[2], mode) - && TARGET_CSSC) + else if (aarch64_sve_cnt_immediate (operands[2], mode)) + ; + else if (TARGET_CSSC) { if (aarch64_uminmax_immediate (operands[1], mode)) std::swap (operands[1], operands[2]);