From patchwork Mon Jun 26 01:31:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: liuhongt X-Patchwork-Id: 112692 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp7183588vqr; Sun, 25 Jun 2023 18:32:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6NJgWeYdFvBgUtc/YrzWDUhv3+zZrlMzJjt1CRGgQSfWRY8Bz2iRieZmOoPTOCMoW4IWyw X-Received: by 2002:a05:6512:3b95:b0:4f9:5d2a:e0f6 with SMTP id g21-20020a0565123b9500b004f95d2ae0f6mr9199285lfv.14.1687743128708; Sun, 25 Jun 2023 18:32:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687743128; cv=none; d=google.com; s=arc-20160816; b=sQW6Xz+A7g3tjYA54FkQNs/htZckTQjFV7iWywkRkpONnrGxYHyCX10xJzDQWRttht MjESm+1He5tRx/qCbxUf4S4uN4keOnm/jntxo/f4riVcHesl1lyUzRdurMI808UlIfKI uJmhVRvzUuUYAJDuI/95iREIhY4zIUPoC0zgZqHvlfHt95ISC7LrxEu81e3kJgg/AROt JT+vS5FNc8Es7qTyCUnTMbqz8mQwgSRsWqavv/4wEiSb5PB7aM9OE6xAA9ZAmQmPt38A CCMeu4J0bC6tfWAYLdoNlDi2MMODj6fncbF2YnKYZvW4HBMed+7hjgl/A+TTXqRSHcmC 7nlA== 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 :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=9zEJN15PRqYCJpPVHa8WXI+Sdav+BDtmOsjm0eX/2po=; fh=+hLOyNjOxs7Oq1aRHEw7XxfEX1oHkVQWuvrPt77y0XY=; b=THrnsZF04GznrCVW7RDCEX5iZr5jVJEg1ql2oG+WDjetDdrE9zt83LHz58XItm/Hms 38jAf9VU3R7jTtjqigTMrCK4Wlda/I2h9GUlYQ91cl5gQRMzkuRnJ42K7Fh04vRnyAaT f1YcyrlTOcSTsJ+9CFYR2zRZUggHOR1mX6aZJGsgIr1t6qJc44sIOEqQ4ovhj7hVIuCK TjTdHE04RBHbKl28/akJY9AvVpvxex8FhFqhOkdZLQ+zXxVcXRt370PiYpBqRkapAg12 a2GU9ahE1tfWprT1ruGUlUvyHxZqW/ZY/seTC8Qqya8HChPHQCrWu1j2bjI1TJjhz5ta qbAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=C6NTLG7z; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id x18-20020aa7dad2000000b0051d9a7c1d1asi490906eds.505.2023.06.25.18.32.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Jun 2023 18:32:08 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=C6NTLG7z; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 7C3023857730 for ; Mon, 26 Jun 2023 01:31:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7C3023857730 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687743119; bh=9zEJN15PRqYCJpPVHa8WXI+Sdav+BDtmOsjm0eX/2po=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=C6NTLG7zAdGGD0fy6v3az+bF5+35nt8E2DywTdfGYdTN1skcDwM1oZEbRzsRdv7dQ ++eqve8yI5csfyJ1EyOnoEsxy9jbVeAMmQ0mY6GySj2KUvqIgxG5pdKZ4Cp4QoeHfC e5HeREHzYJk44feHRG6HXPy+OwET8WXwxpbpyqRo= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by sourceware.org (Postfix) with ESMTPS id EDA5C3858D35 for ; Mon, 26 Jun 2023 01:31:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EDA5C3858D35 X-IronPort-AV: E=McAfee;i="6600,9927,10752"; a="391353082" X-IronPort-AV: E=Sophos;i="6.01,158,1684825200"; d="scan'208";a="391353082" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2023 18:31:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10752"; a="785969705" X-IronPort-AV: E=Sophos;i="6.01,158,1684825200"; d="scan'208";a="785969705" Received: from shvmail03.sh.intel.com ([10.239.245.20]) by fmsmga004.fm.intel.com with ESMTP; 25 Jun 2023 18:31:05 -0700 Received: from shliclel4217.sh.intel.com (shliclel4217.sh.intel.com [10.239.240.127]) by shvmail03.sh.intel.com (Postfix) with ESMTP id 3697C100782A; Mon, 26 Jun 2023 09:31:05 +0800 (CST) To: gcc-patches@gcc.gnu.org Cc: richard.sandiford@arm.com, rguenther@suse.de Subject: [PATCH 3/3] [aarch64] Adjust testcase to match assembly output after r14-2007. Date: Mon, 26 Jun 2023 09:31:05 +0800 Message-Id: <20230626013105.18788-3-hongtao.liu@intel.com> X-Mailer: git-send-email 2.39.1.388.g2fc9e9ca3c In-Reply-To: <20230626013105.18788-1-hongtao.liu@intel.com> References: <20230626013105.18788-1-hongtao.liu@intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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: liuhongt via Gcc-patches From: liuhongt Reply-To: liuhongt 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?1769726939199474384?= X-GMAIL-MSGID: =?utf-8?q?1769726939199474384?= The new assembly looks better than original one, so I adjust those testcases. Ok for trunk? gcc/testsuite/ChangeLog: PR tree-optimization/110371 PR tree-optimization/110018 * gcc.target/aarch64/sve/unpack_fcvt_signed_1.c: Scan scvt + sxtw instead of scvt + zip1 + zip2. * gcc.target/aarch64/sve/unpack_fcvt_unsigned_1.c: Scan scvt + uxtw instead of ucvtf + zip1 + zip2. --- gcc/testsuite/gcc.target/aarch64/sve/unpack_fcvt_signed_1.c | 6 +++--- .../gcc.target/aarch64/sve/unpack_fcvt_unsigned_1.c | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/gcc/testsuite/gcc.target/aarch64/sve/unpack_fcvt_signed_1.c b/gcc/testsuite/gcc.target/aarch64/sve/unpack_fcvt_signed_1.c index 0f96dc2ff00..5edc288ce35 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/unpack_fcvt_signed_1.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/unpack_fcvt_signed_1.c @@ -10,6 +10,6 @@ unpack_double_int_plus8 (double *d, int32_t *s, int size) d[i] = s[i] + 8; } -/* { dg-final { scan-assembler-times {\tzip1\tz[0-9]+\.s, z[0-9]+\.s, z[0-9]+\.s\n} 1 } } */ -/* { dg-final { scan-assembler-times {\tzip2\tz[0-9]+\.s, z[0-9]+\.s, z[0-9]+\.s\n} 1 } } */ -/* { dg-final { scan-assembler-times {\tscvtf\tz[0-9]+\.d, p[0-7]/m, z[0-9]+\.s\n} 2 } } */ +/* { dg-final { scan-assembler-times {\tscvtf\tz[0-9]+\.d, p[0-7]/m, z[0-9]+\.d\n} 1 } } */ +/* { dg-final { scan-assembler-times {\tsxtw\tz[0-9]+\.d, p[0-7]/m, z[0-9]+\.d\n} 1 } } */ + diff --git a/gcc/testsuite/gcc.target/aarch64/sve/unpack_fcvt_unsigned_1.c b/gcc/testsuite/gcc.target/aarch64/sve/unpack_fcvt_unsigned_1.c index 70465f91eba..ecd72176177 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/unpack_fcvt_unsigned_1.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/unpack_fcvt_unsigned_1.c @@ -10,6 +10,5 @@ unpack_double_int_plus9 (double *d, uint32_t *s, int size) d[i] = (double) (s[i] + 9); } -/* { dg-final { scan-assembler-times {\tzip1\tz[0-9]+\.s, z[0-9]+\.s, z[0-9]+\.s\n} 1 } } */ -/* { dg-final { scan-assembler-times {\tzip2\tz[0-9]+\.s, z[0-9]+\.s, z[0-9]+\.s\n} 1 } } */ -/* { dg-final { scan-assembler-times {\tucvtf\tz[0-9]+\.d, p[0-7]/m, z[0-9]+\.s\n} 2 } } */ +/* { dg-final { scan-assembler-times {\tscvtf\tz[0-9]+\.d, p[0-7]/m, z[0-9]+\.d\n} 1 } } */ +/* { dg-final { scan-assembler-times {\tuxtw\tz[0-9]+\.d, p[0-7]/m, z[0-9]+\.d\n} 1 } } */