From patchwork Sat Dec 24 22:13:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Sayle X-Patchwork-Id: 36454 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp308757wrt; Sat, 24 Dec 2022 14:14:11 -0800 (PST) X-Google-Smtp-Source: AMrXdXu3n9bQDUhAUOhbyy1xq0xq2LMqOFipgFK5XUpFkQt1a0UrrMZyz2IFHS3W9iqLLUupr7kF X-Received: by 2002:aa7:db53:0:b0:479:973d:8672 with SMTP id n19-20020aa7db53000000b00479973d8672mr11817897edt.3.1671920051661; Sat, 24 Dec 2022 14:14:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671920051; cv=none; d=google.com; s=arc-20160816; b=X6KVJ5TAV6kRMFyHiAIyAjBMEODAteAeAQgPCrv7teFULoX97wn4xSb1cQLyPIVUT6 wYC033582VT31UOju/XKJeIGekVN6UbBjZ+5ekJZZdco7/8+wfRMJgkQjnQLKFE8PPwm KUvrt7OhfiTac6bTTAtyTEowQgDVtoAMRgb4/Y8Ns/HZ/KLG2aof3KTZn9b7mRLnUvMx fqHYFIiLqeqxO0HA4+WRoEDx6ttqV/l8vLl0c3Swna3BwfM3EhxPvAK9bv5n6tzAtvXe g+YNyRZYsjq44CCFzpholKGKLFLDZGQHTdTgfAZyItq4Q1XF1fdJwxb+cjNUmllcQ196 UmKg== 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=TXYpkzNrXwprgxqWMjnq8i64nNLKJbTUxWaLwrLqVlw=; b=sDZsraBH1YDExUtMyT4TIBifrsGEkmWM23sYVNJL4mAzUIxSpPJQphaI75jXfv3jkk sBe4OcUqlhfTtzotY1VF9Lqo7b7TchqYlRcGjA6UTOj0/xa2b0Mb69h90wgwKqZdDAxL WhwhLUhQb985Pcnrz49v8Jt1MQLZeVMscjXDzMGWM5O4rNv/16NYeNPU6tROUnywL407 fxNq7xPszuNrIUrzOIPHhCiqrnFHG43+V37ANtsazbi8gdB2JoNQAUgpDqim4G9KvvDl maxhGx8DSZx2Hc7+rYmUmBI7CwmadM5zhgpCG++AkSxjIacNDNPj0JyfOJs3hL0LGPsU JYaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nextmovesoftware.com header.s=default header.b=UgkXmyte; 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" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id f13-20020a056402354d00b00478215c1d6esi6273489edd.553.2022.12.24.14.14.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Dec 2022 14:14:11 -0800 (PST) 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=fail header.i=@nextmovesoftware.com header.s=default header.b=UgkXmyte; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 161463850F25 for ; Sat, 24 Dec 2022 22:14:08 +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 5FBF73857C45 for ; Sat, 24 Dec 2022 22:13:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5FBF73857C45 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=TXYpkzNrXwprgxqWMjnq8i64nNLKJbTUxWaLwrLqVlw=; b=UgkXmyteynC/K+C0FBxUL807PR poaZFMyXlQL4ik+k4jhUGerXM96dKMORj1G1Nh8gbrsX+keuhNfNV5C3IE4K8RI6zUXIxkElKzbQq 0txAck4PwnvQL3Xelv5n9VDvf0Od2hvGE4p0BXB1XzWI/HbT3mhDb8DL0WG63xFqsDNV2rCcCiKAp iL0Vb/RPAIMdB2R7lVJnywhSmS7p6fGK/m2Hg6FV8RZZUM3N59+5upXUi3FplEvl3Q9yCMIF6sYCq KY13YOA0J+GrkA1LWK5m5AV3YYRifo2+GLSBRng2eS0CU058rCCx0v1TsPpV981J/SJdcg1aGlFor PDQxin0w==; Received: from host109-151-228-216.range109-151.btcentralplus.com ([109.151.228.216]:60293 helo=Dell) by server.nextmovesoftware.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1p9Clu-0001gg-63 for gcc-patches@gcc.gnu.org; Sat, 24 Dec 2022 17:13:38 -0500 From: "Roger Sayle" To: "'GCC Patches'" Subject: [Committed] Tweak new gcc.target/i386/pr107548-1.c for -march=cascadelake. Date: Sat, 24 Dec 2022 22:13:36 -0000 Message-ID: <006e01d917e4$f906e020$eb14a060$@nextmovesoftware.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdkX5I0jbAKso/l6RU+Vi5oBb7cuxg== 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=-12.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, SPF_HELO_NONE, SPF_PASS, 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: , 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?1753135240125457360?= X-GMAIL-MSGID: =?utf-8?q?1753135240125457360?= My recently added testcases gcc.target/i386/pr107548-[12].c need to be tweaked slightly for -march=cascadelake. Committed as obvious. 2022-12-24 Roger Sayle gcc/testsuite/ChangeLog PR target/107548 * gcc.target/i386/pr107548-1.c: Match both vmovd and movd. * gcc.target/i386/pr107548-2.c: Match both vpaddq and paddq. Roger diff --git a/gcc/testsuite/gcc.target/i386/pr107548-1.c b/gcc/testsuite/gcc.target/i386/pr107548-1.c index da78f75..f384492 100644 --- a/gcc/testsuite/gcc.target/i386/pr107548-1.c +++ b/gcc/testsuite/gcc.target/i386/pr107548-1.c @@ -20,6 +20,6 @@ unsigned int foo3 (v4si a, v4si b) return a[0] + a[3]; } -/* { dg-final { scan-assembler-times "\tmovd\t" 3 } } */ -/* { dg-final { scan-assembler-times "paddd" 6 } } */ +/* { dg-final { scan-assembler-times "\tv?movd\t" 3 } } */ +/* { dg-final { scan-assembler-times "v?paddd" 6 } } */ /* { dg-final { scan-assembler-not "addl" } } */ diff --git a/gcc/testsuite/gcc.target/i386/pr107548-2.c b/gcc/testsuite/gcc.target/i386/pr107548-2.c index b57594e..58f7b1c 100644 --- a/gcc/testsuite/gcc.target/i386/pr107548-2.c +++ b/gcc/testsuite/gcc.target/i386/pr107548-2.c @@ -9,5 +9,5 @@ unsigned long long foo(v2di a, v2di b) } /* { dg-final { scan-assembler-not "\taddq\t" } } */ -/* { dg-final { scan-assembler-times "paddq" 2 } } */ -/* { dg-final { scan-assembler "psrldq" } } */ +/* { dg-final { scan-assembler-times "v?paddq" 2 } } */ +/* { dg-final { scan-assembler "v?psrldq" } } */