From patchwork Thu Apr 29 12:54:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 1471716 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=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=i6pVpChP; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 4FWFpM6vJQz9sV5 for ; Thu, 29 Apr 2021 22:55:07 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7846C3AAAC0C; Thu, 29 Apr 2021 12:54:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7846C3AAAC0C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1619700870; bh=klBNDFPhKR1GPi9QH4Nb5uvdqQ5UzAPfms5xv6Aac0U=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=i6pVpChPMf8+jhjiXaPHcisTobpQLjWn5BNbx+ROQZLi6cmOQtuH8z+rKmDaQ7f8m FrM5RgPcePZb69URSs7XiqMDDdg0MfmpnDi9UADbECu+YwfPn+tGKLmM4G2ToFMLNr B+oOEhUzFl4xaQytdVKsyCbj0ybbED4uaddY/pEo= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by sourceware.org (Postfix) with ESMTPS id 46F853AAAC0C for ; Thu, 29 Apr 2021 12:54:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 46F853AAAC0C Received: by mail-pj1-x1032.google.com with SMTP id m6-20020a17090a8586b02901507e1acf0fso10896596pjn.3 for ; Thu, 29 Apr 2021 05:54:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=klBNDFPhKR1GPi9QH4Nb5uvdqQ5UzAPfms5xv6Aac0U=; b=mrmlSa7IoSaIwh68U6rJzYvWvfOwgMwzcqUL2nFqiEX9ZZK6jESOVHFvOFwxD0B4s7 JvTJQalf/gI6nIS4HfKi1VPmz0YY3ZN9CcDk71v/EdvWg7XgPScSHVAtDis5MOsStO5z cOaEFvIpHGMa4FvFW7OZERAgDrsGttoIH0icdnwmnydpfv5STmsnn7CRSPtD8kSh2RN3 pfOZUMw0EaQhpb7huyNE03UV/qTq7iVfi+wI62EfcUBouoimGS3lWscv0UspFieeFQIK TDI9WYdysrkNLHkVyMKpkWfCrtzhfp/kgKrQf+ic0V06BctPn7ZLvn8b4sRqnL2kSni5 K0kg== X-Gm-Message-State: AOAM531M2yAkfinOBF3+TBieuU7rU14eq07rBfueM+0YQFbDkiZ+wlKQ z1jfiAfo1NS7RyDHSSzlo+d4ueUPuJim7g== X-Google-Smtp-Source: ABdhPJwuIeJo7xvM62EX7txOHLlUzBcVm7oLn9ugzLb8G0S23OJJtyIeoFyAZWLxK2JJhSudopn7Zg== X-Received: by 2002:a17:90a:e54e:: with SMTP id ei14mr20771398pjb.142.1619700863208; Thu, 29 Apr 2021 05:54:23 -0700 (PDT) Received: from gnu-cfl-2.localdomain ([172.58.35.177]) by smtp.gmail.com with ESMTPSA id m11sm7465069pjs.34.2021.04.29.05.54.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Apr 2021 05:54:22 -0700 (PDT) Received: from gnu-cfl-2.. (localhost [IPv6:::1]) by gnu-cfl-2.localdomain (Postfix) with ESMTP id E76B1C123F; Thu, 29 Apr 2021 05:54:15 -0700 (PDT) To: gcc-patches@gcc.gnu.org Subject: [PATCH 11/12] x86: Also pass -mno-avx to sw-1.c for ia32 Date: Thu, 29 Apr 2021 05:54:14 -0700 Message-Id: <20210429125415.1634118-12-hjl.tools@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210429125415.1634118-1-hjl.tools@gmail.com> References: <20210429125415.1634118-1-hjl.tools@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-3035.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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: , X-Patchwork-Original-From: "H.J. Lu via Gcc-patches" From: "H.J. Lu" Reply-To: "H.J. Lu" Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" Also pass -mno-avx to sw-1.c for ia32 since copying data with YMM or ZMM registers disables shrink-wrapping when the second argument is passed on stack. * gcc.target/i386/sw-1.c: Also pass -mno-avx for ia32. --- gcc/testsuite/gcc.target/i386/sw-1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gcc.target/i386/sw-1.c b/gcc/testsuite/gcc.target/i386/sw-1.c index aec095eda62..a9c89fca4ec 100644 --- a/gcc/testsuite/gcc.target/i386/sw-1.c +++ b/gcc/testsuite/gcc.target/i386/sw-1.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -mtune=generic -fshrink-wrap -fdump-rtl-pro_and_epilogue" } */ +/* { dg-additional-options "-mno-avx" { target ia32 } } */ /* { dg-skip-if "No shrink-wrapping preformed" { x86_64-*-mingw* } } */ #include