From patchwork Tue Mar 10 16:42:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 1252281 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=RHqKpdNa; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48cLVv04z8z9sQx for ; Wed, 11 Mar 2020 03:43:02 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2D4AC395A00E; Tue, 10 Mar 2020 16:43:00 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by sourceware.org (Postfix) with ESMTPS id B56E43959E74 for ; Tue, 10 Mar 2020 16:42:57 +0000 (GMT) Received: by mail-il1-x130.google.com with SMTP id o18so12564807ilg.10 for ; Tue, 10 Mar 2020 09:42:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=obXQL0aqSDszOFvQ6/oNsn6ROtBX0k4CEcMZhB9GcnM=; b=RHqKpdNaE6YPxJLakQs62PXMn7baNw+68AEJRirmrMZYbtDLQOk1cX3+U4SDf3B9yI qfJizbFh9ncji1jQW3R06JsLFf0zJfR915OAOoLJPRihGQkYw/CfHN0XYu2eD+2jDwt1 t+TaQW8kzPKz6+1Xjpmwr6M15qr3Sy1jjKOz7LfdIXoWP++9cth1dtggV7dkSKJi8OG6 JcvGPu6y5OSeywyhr8vsZ2e+N0hRH53rFIqjUeF+/yZuaoxj4oo7e1/bI8TbrZkPP4Kh cY0W1t+hUatzuiUNpcf4ka5jwmqM6VPwJweDpyA0wLdGisXBNQE2EK4+ZWdNXTNIuzaY DNdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=obXQL0aqSDszOFvQ6/oNsn6ROtBX0k4CEcMZhB9GcnM=; b=fH7Gh6P2Khoi+5uiqGKhDUAEDSH0mPAnVIk8sI3nDQh1FduiW+X9VszlvhV8cZr3Ob J1EJQ1cRa5FqAHUiGoi29T1OvbnxRKZBLmQ/Cb730PNUTJTwD0dwwbqHLrq7oMYOwGJ8 NKB8KSxe6FHSOWttIPnMeoeXYCAThvuUlJPpGcMt4MJO0txMgqgJLc4e5GzYtP4FiPFQ WzbvbXflqO/6/rk3HS057v1U8a5HwAjNYhObrNl5ZUX/GpHkql4YjHqx3n+wT/vfBfj0 ZhSVz1GoyKT6b8b+VBBYRb76rqtjnPqFyvwrSc4WiOyWypt70oWjGfZkQzsp5DAunXBB z0Jg== X-Gm-Message-State: ANhLgQ3KeJkKuE8maHHPbRU0dSM+//G7PfEvIDqhd0ie0idEDpK0C+cU iuYB+OqFj8xKhN9rF2Wd1QgXHzlEcQm7bfxe96+MMFjc X-Google-Smtp-Source: ADFU+vs8PIh90FSFf4WswV8PazHkwZg5sMrvarqud97i098WHN+YgAC5WvHqsXrAMoZLI0jC3ssrBPX8s2fy/C0whqw= X-Received: by 2002:a92:da51:: with SMTP id p17mr11709134ilq.254.1583858576869; Tue, 10 Mar 2020 09:42:56 -0700 (PDT) MIME-Version: 1.0 From: Uros Bizjak Date: Tue, 10 Mar 2020 17:42:45 +0100 Message-ID: Subject: [committed] testsuite: Scan for SSE reg-reg moves only in pr80481.C To: "gcc-patches@gcc.gnu.org" X-Spam-Status: No, score=-27.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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@gcc.gnu.org Sender: "Gcc-patches" The function needs more than 8 SSE registers, avoid false positives triggered by SSE spills for 32bit targets. 2020-03-10 Uroš Bizjak * g++.dg/pr80481.C (dg-final): Scan for SSE reg-reg moves only. Tested on x86_64-linux-gnu {,-m32}. Uros. diff --git a/gcc/testsuite/g++.dg/pr80481.C b/gcc/testsuite/g++.dg/pr80481.C index c565ad24d90..78c463b8e3b 100644 --- a/gcc/testsuite/g++.dg/pr80481.C +++ b/gcc/testsuite/g++.dg/pr80481.C @@ -1,11 +1,9 @@ // { dg-do compile { target { i?86-*-* x86_64-*-* } && { ! *-*-solaris* } } } // { dg-options "-Ofast -funroll-loops -fopenmp -march=knl" } -// { dg-final { scan-assembler-not "vmovaps" } } // Disabling epilogues until we find a better way to deal with scans. // { dg-additional-options "--param vect-epilogues-nomask=0" } - #include #include @@ -72,3 +70,5 @@ void foo (Sdata *in, int idx, float *out) _mm_free(y3); _mm_free(y4); } + +// { dg-final { scan-assembler-not "vmovaps\[^\n\r]*zmm\[0-9]+,\[^\n\r]*zmm\[0-9]+" } }