From patchwork Thu Jun 29 10:49:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Sayle X-Patchwork-Id: 114273 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp9544382vqr; Thu, 29 Jun 2023 03:50:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7/zNPL55XvE+IFxL/C1kH8xEyN1Yi4sIpoWRLT2mzBDKRXekBZ+uI5KeMFZSgt4KJjTY18 X-Received: by 2002:a17:906:ef03:b0:974:183a:54b6 with SMTP id f3-20020a170906ef0300b00974183a54b6mr31205340ejs.33.1688035808389; Thu, 29 Jun 2023 03:50:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688035808; cv=none; d=google.com; s=arc-20160816; b=N7OoJdm2FbuywJerh782DCasXrrYDQ4qRH8Ff+6KQk3H2kaW7Ini4y+JE8fBBz9WID VjZLV6eJQKWprzR2Lv2q3jo8uYSzYPfttXmbr3YOISbB0Z9kS33/DJHORJ5XxcADBjEY zenTdrfRCIir3ez4TZ6Cwqy6r1p/e7ey4oiRBJNRgbNcUufRk5+gfcMdVlxL36KJvG+Q Cm7eR2hYPkfyt/m+HvfYKvbhtrF6NOQFcdJSrTO/d9Iqu7doaO3I6eUtwGA15zWKbQeL 4U4ltEnshGdDiBEMYyZd8wujdLeiua9Z4FmaxRE1UMsc4fDaRUMqiqoRB9bCptrtnd+v bpxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-language:thread-index :mime-version:message-id:date:subject:to:from:dkim-signature :dmarc-filter:delivered-to; bh=lRdAEwnHnN/PRKWlW9mFSA+tmLFdGxYi/LAa1cTeB5Y=; fh=gk9A5O7Gbglvz1MjrRQ4hZ2i3c68kYkpOZJg1emXh+g=; b=eK5AG1kkiN/fYgMqhNPBZnpllUK5g5QlYSVqr4hrGbGDyWRIrQP1rpc0KLuMe8qdjR CpStSHrVvxYehtSvMzc+b1n3gIkQ7+GQ5qgoidsFj6RxpBxeZyD1mTLw4kI0LLeNNAal 7ZG4fDpksVwSZpjlAgg9sD5OoIa4gkr6g1bcPolvEQQKpCIKOij9bAwZWZliVeQwKirL 6XFhS4JrU/95lvo4dk33KHJx6/WQNHvmSe050mc/SF7bYEI3pt6lG29QBxVhlVc/yDF8 VBFtYB1CxXtspvnaQxogDApsrWo7X5WuUpLapl4xD2vn6gFZoicezxVUyTMydwNq87NU 9PnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nextmovesoftware.com header.s=default header.b=Nt1gb0KT; 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 sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id h15-20020a170906590f00b00988891b31f9si6678405ejq.375.2023.06.29.03.50.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jun 2023 03:50:08 -0700 (PDT) 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=fail header.i=@nextmovesoftware.com header.s=default header.b=Nt1gb0KT; 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 9F2473857C51 for ; Thu, 29 Jun 2023 10:49:56 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from server.nextmovesoftware.com (server.nextmovesoftware.com [162.254.253.69]) by sourceware.org (Postfix) with ESMTPS id CAFB43858D35 for ; Thu, 29 Jun 2023 10:49:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CAFB43858D35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=nextmovesoftware.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nextmovesoftware.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nextmovesoftware.com; s=default; h=Content-Type:MIME-Version:Message-ID: Date:Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=lRdAEwnHnN/PRKWlW9mFSA+tmLFdGxYi/LAa1cTeB5Y=; b=Nt1gb0KT3EsMAtkXehLh/M2Rjl RYFYzuN2DGumdEElIahHUHlo2rQvwj7lZPXcKlADd5+/Z8C3s8C5XcRZmWuFO4bFClRMZO3LDesF+ SpS4CSs5mpRMQEBOYoq1U3chX9R32AksYgXHCZoIRNyvsbnDUoX2t2sZPP4hzX/YmSWOs3ajUxVTU KptmI0xQVLYuhQ0u7uJIpEq1LGvG6e89gmkSvwqbhekBliJe/q+/H7wgG3zCkyUpoexgC+Hkc3N4o IZJ1T+JVCrk2mbs5xgBVnQmLF7Dgso8TOZB+4NpiOnhRSePTL3eKA3ZuYF5Fv0VRp5nwH2KB9M9Ba X51Xug2w==; Received: from host86-161-68-50.range86-161.btcentralplus.com ([86.161.68.50]:52097 helo=Dell) by server.nextmovesoftware.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qEpDP-0006NT-25 for gcc-patches@gcc.gnu.org; Thu, 29 Jun 2023 06:49:31 -0400 From: "Roger Sayle" To: Subject: [Committed] Add -mmove-max=128 -mstore-max=128 to pieces-memcmp-2.c Date: Thu, 29 Jun 2023 11:49:30 +0100 Message-ID: <022c01d9aa77$62be0230$283a0690$@nextmovesoftware.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdmqdukpQR88mvL2TfKvg2GF6D6R8A== Content-Language: en-gb X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server.nextmovesoftware.com X-AntiAbuse: Original Domain - gcc.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - nextmovesoftware.com X-Get-Message-Sender-Via: server.nextmovesoftware.com: authenticated_id: roger@nextmovesoftware.com X-Authenticated-Sender: server.nextmovesoftware.com: roger@nextmovesoftware.com X-Source: X-Source-Args: X-Source-Dir: X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_BARRACUDACENTRAL, SPF_HELO_NONE, 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.29 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 Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770033835795952806?= X-GMAIL-MSGID: =?utf-8?q?1770033835795952806?= Adding -mmove-max=128 and -mstore-max=128 to the dg-options of the recently added gcc.target/i386/pieces-memcmp-2.c avoids changing the intent of this testcase when adding -march=cascadelake to RUNTESTFLAGS. Tested on x86_64-pc-linux-gnu. Committed as obvious. 2023-06-29 Roger Sayle gcc/testsuite/ChangeLog * gcc.target/i386/pieces-memcmp-2.c: Specify that 128-bit comparisons are desired, to see if 256-bit instructions are generated inappropriately (fixes test on -march=cascadelake). diff --git a/gcc/testsuite/gcc.target/i386/pieces-memcmp-2.c b/gcc/testsuite/gcc.target/i386/pieces-memcmp-2.c index 6f996faeced..6061c911165 100644 --- a/gcc/testsuite/gcc.target/i386/pieces-memcmp-2.c +++ b/gcc/testsuite/gcc.target/i386/pieces-memcmp-2.c @@ -1,5 +1,5 @@ /* { dg-do compile { target ia32 } } */ -/* { dg-options "-O2 -mavx2" } */ +/* { dg-options "-O2 -mavx2 -mmove-max=128 -mstore-max=128" } */ int foo(char *a) {