From patchwork Tue Nov 14 09:00:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lehua Ding X-Patchwork-Id: 164778 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1732941vqg; Tue, 14 Nov 2023 01:01:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IFE7B7yaQVwGMJzK4iIhtOSIdLR+x7+zSfYazFXhjD1V/WsEaEOTMDciwgw1o588tUMXmN2 X-Received: by 2002:a05:6214:3201:b0:677:a05c:b82a with SMTP id qj1-20020a056214320100b00677a05cb82amr2297808qvb.22.1699952501211; Tue, 14 Nov 2023 01:01:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699952501; cv=pass; d=google.com; s=arc-20160816; b=hfj1L9NMRWv7u+jhX+BhU3FW3MDESUf1tUoXTDPvPdCUM9K8CVyil4VtSIx5NUDwNZ X/2bV/9VS6nidK2KyWvPaxJdNsgN46gyZATL7GaEKgTz/imsKrKeLJYmPXAo1mCoCcbl 773z91gL/iQURUV626ZD7GGBvLht48lgVfSjFxmRCV4nHOMa4tn22iaISG4K1MT9/5os SVKmAc6EjKBp4bG/HNXgE62HEbwhRcX8lZBTjhWKFCaX2EwA3DSTgYt1qqhdTFF6Y4AW sQOlShjsq0GLDMAL+d3Hpc/rGMlnqB9mC/DA/ZkX2/ISTKUJ+7auVMtq63k0g8LUvmxP d6qA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:feedback-id :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:arc-filter:dmarc-filter:delivered-to; bh=TYqaB8MbDe24jRg5Pq+4185RB2XvhMPEiSnQGoeufj4=; fh=wkl3wK6cVGhf/99HPpP8hvbVdA86Wtao0+eGdvkSVRU=; b=D33hj9cL62eRWUk4bngqwDB1AVOtfAjtXuI6PXRc+ekC6eoZty4RAJSkUNd99QyNBh FT02Ashb2UfcLDDJJxXc0WVveGRm5JUINuLRKKAyWUPRg21edZWJMcXpAEEz52kAZ2BJ jLG+Y1G4zWdXRVd4qIXMoffbzlivfav6TKcCAar8ByU2z2fuoIVtYz8MY3ufpdFHZA6k 61kb4L1p4xrV684iXh0+9RIlXs0A2M82UVbyZcwVnSrEhIWF3gaq26mXpT1dcNuG0jki eC5EHOtVpTlLcbeYEX7pSixhf2SW4F2aYrzLE59yyTBoshFtjQmDZxw151E7TOukfAFR tWjg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); 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" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id h16-20020a05620a13f000b00774384dabe3si5746200qkl.563.2023.11.14.01.01.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 01:01:41 -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; arc=pass (i=1); 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 031D63853D36 for ; Tue, 14 Nov 2023 09:01:41 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbgbr2.qq.com (smtpbgbr2.qq.com [54.207.22.56]) by sourceware.org (Postfix) with ESMTPS id 22D183858421 for ; Tue, 14 Nov 2023 09:01:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 22D183858421 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivai.ai Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivai.ai ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 22D183858421 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=54.207.22.56 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699952477; cv=none; b=E7xhUVpn5lTsHgMyLpxb0H3abMvHX99NoqeYCvlTD+cOKzkdQXnJ455Nl+9rRZrpVrSpAJvvQd1Y5f12O43O+q93p4hjk83uTnCUxTQomO9oLiKWuGh2Dd/qkjOziN0BadtKQMHABT42OdaHZTnoW689aHR3P40l5AGzuMMhwzs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699952477; c=relaxed/simple; bh=uucJWeiWumjO8eYSCVEdFB6NxhU1NQugF+MCmY/NMCw=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=cQwH+xSajWq7IulLFnk44iPMH4VTvmxDbT8XxVVMa3TOPYyFN8rLT074e2qnRNd7JaxKJfqTWLW53pFM2VIkA3snRBqgD8+8bjzVvHnvtQPhJmctvReMZ9Tb4M1wTfGCKPAhmYufxHsPsTAhtVn1N5TxqteDnrF5jVv+lJbkdDo= ARC-Authentication-Results: i=1; server2.sourceware.org X-QQ-mid: bizesmtp81t1699952445t2hnd396 Received: from rios-cad121.hadoop.rioslab.org ( [58.60.1.9]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 14 Nov 2023 17:00:44 +0800 (CST) X-QQ-SSF: 01400000000000C0F000000A0000000 X-QQ-FEAT: G/7Y+EUqWqXSO8SLSFIhp2wvEYlEfZceWRbeY9i2KuLThmOTFl/j0yyEi3G6P NduXUQjyNQ0RHMCftt0jITB2u+YAWsaJeIgpxSsZexUiFam+yGwr5pu9wtRapA+GHMgYLZ0 /YCcZ9L8hnHHO4Rse4ugX5PyG4KvbVWrAHSofGisgI0tJvMKr8a48hj1g7euI52Gpn5Oo/J G78fTYu715eRY48b2ajV7EK2lE8wbNVQNr8lw9024KnE4v2M0y5TfNYgyTFVGwbdiOjoYqL oMfv+iK+gCei3nKOyFrZydWuFALCwUHJ399rteoHUY/2qPTKqJtBipEv4+NauiGrHtsbV3l eWWNr45PpXsS9gnmWKCg3GjgpmKu+sVNxm9hkA3Uu8mmaOe0QoVNLPN6a5ipg/ZQbx0emI9 SzIhxdujx3g= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 12084262077754854498 From: Lehua Ding To: gcc-patches@gcc.gnu.org Cc: hongtao.liu@intel.com, juzhe.zhong@rivai.ai, lehua.ding@rivai.ai Subject: [PATCH] x86: Make testcase apx-spill_to_egprs-1.c more robust Date: Tue, 14 Nov 2023 17:00:44 +0800 Message-Id: <20231114090044.1452311-1-lehua.ding@rivai.ai> X-Mailer: git-send-email 2.36.3 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvrgz:qybglogicsvrgz6a-0 X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782529393606318129 X-GMAIL-MSGID: 1782529393606318129 Hi, This little patch adjust the assert in apx-spill_to_egprs-1.c testcase. The -mapxf compilation option allows more registers to be used, which in turn eliminates the need for local variables to be stored in stack memory. Therefore, the assertion is changed to detects no memory loaded through the %rsp register. gcc/testsuite/ChangeLog: * gcc.target/i386/apx-spill_to_egprs-1.c: Make sure that no local variables are stored on the stack. --- .../gcc.target/i386/apx-spill_to_egprs-1.c | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/gcc/testsuite/gcc.target/i386/apx-spill_to_egprs-1.c b/gcc/testsuite/gcc.target/i386/apx-spill_to_egprs-1.c index 290863d63a7..d7952b4c550 100644 --- a/gcc/testsuite/gcc.target/i386/apx-spill_to_egprs-1.c +++ b/gcc/testsuite/gcc.target/i386/apx-spill_to_egprs-1.c @@ -3,22 +3,9 @@ #include "spill_to_mask-1.c" -/* { dg-final { scan-assembler "movl\[ \t]+\[^\\n\\r\]*, %r16d" } } */ -/* { dg-final { scan-assembler "movl\[ \t]+\[^\\n\\r\]*, %r17d" } } */ -/* { dg-final { scan-assembler "movl\[ \t]+\[^\\n\\r\]*, %r18d" } } */ -/* { dg-final { scan-assembler "movq\[ \t]+\[^\\n\\r\]*, %r19" } } */ -/* { dg-final { scan-assembler "movl\[ \t]+\[^\\n\\r\]*, %r20d" } } */ -/* { dg-final { scan-assembler "movl\[ \t]+\[^\\n\\r\]*, %r21d" } } */ -/* { dg-final { scan-assembler "movl\[ \t]+\[^\\n\\r\]*, %r22d" } } */ -/* { dg-final { scan-assembler "movl\[ \t]+\[^\\n\\r\]*, %r23d" } } */ -/* { dg-final { scan-assembler "movl\[ \t]+\[^\\n\\r\]*, %r24d" } } */ -/* { dg-final { scan-assembler "addl\[ \t]+\[^\\n\\r\]*, %r25d" } } */ -/* { dg-final { scan-assembler "movl\[ \t]+\[^\\n\\r\]*, %r26d" } } */ -/* { dg-final { scan-assembler "movl\[ \t]+\[^\\n\\r\]*, %r27d" } } */ -/* { dg-final { scan-assembler "movbel\[ \t]+\[^\\n\\r\]*, %r28d" } } */ -/* { dg-final { scan-assembler "movbel\[ \t]+\[^\\n\\r\]*, %r29d" } } */ -/* { dg-final { scan-assembler "movbel\[ \t]+\[^\\n\\r\]*, %r30d" } } */ -/* { dg-final { scan-assembler "movbel\[ \t]+\[^\\n\\r\]*, %r31d" } } */ +/* Make sure that no local variables are stored on the stack. */ +/* { dg-final { scan-assembler-not "\\(%rsp\\)" } } */ + /* { dg-final { scan-assembler-not "knot" } } */ /* { dg-final { scan-assembler-not "kxor" } } */ /* { dg-final { scan-assembler-not "kor" } } */