From patchwork Fri Jun 24 16:41:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Noah Goldstein X-Patchwork-Id: 1648089 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=ykfVRtKA; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Received: from sourceware.org (ip-8-43-85-97.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 (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LV2wy719Yz9s0r for ; Sat, 25 Jun 2022 02:42:58 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 23F20383D805 for ; Fri, 24 Jun 2022 16:42:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 23F20383D805 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1656088976; bh=f+G1k8f5sPkUjH1p5XAKdWB9ZNiGGZDSu1AmJcUUO7Q=; 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=ykfVRtKAMaTN9tr9F+otPvJFI55mPPGUiqYblB1DRn2ynCFD5NlRPLYd/nfb4bmps L4QABwk7uGnss33rJOl92k8Ez/zABDu/xCK5xxxHBzYZm88F6YOpHpCA8Ky8kMQirP 0wzaSgnykdd/2zRm6BvJlCjMUaORjvsqt0szO+W8= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by sourceware.org (Postfix) with ESMTPS id D922B383DBB1 for ; Fri, 24 Jun 2022 16:41:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D922B383DBB1 Received: by mail-pj1-x1035.google.com with SMTP id b12-20020a17090a6acc00b001ec2b181c98so6310331pjm.4 for ; Fri, 24 Jun 2022 09:41:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=f+G1k8f5sPkUjH1p5XAKdWB9ZNiGGZDSu1AmJcUUO7Q=; b=qAyuKAvre2KIfW781t/eXVfR70HjSB+JVrHWv5hlrNeKVhD6qDBkd4HAqx0tbzjAeL KUF1MY/cXQ1WApp4RC7qjbsS0ph6rpPkN5GttxGaYFlOH1fk5fbZBG2cB7nCohxy8em/ 2xP6qudpGkMrKal0FT2YqrDNubfmYueG/OA2mOhL0z4mn+eZNyutrq/hBCYRAKnRwail cKvbgnXamPioScJmVQ2iTe3iEUrL05lC2GXBwgv7q5ky1L3j0J/uFiuULF3N1neRX9zH IW0aByeEzl/gO8AGgvvmzz/UTkt/JzUWrePonltVaqPrsbTBuqMrUidEbWnlLXPNBBUi bMyw== X-Gm-Message-State: AJIora80AnCvPq0degzDr0GA0AmsaQQL0VA0itNXdOQRKfOp4AonTPiP 8ghntgqJ4diyJ3/5ETYg87+dkwNdkhE= X-Google-Smtp-Source: AGRyM1vt2BsKLuhY8tmqirbGEyBxGiHqxPrevyGbizUoZYiAZfcwj1pf59p/xqh6cII/Yxs5vthYNg== X-Received: by 2002:a17:902:cf42:b0:16a:7402:2b5c with SMTP id e2-20020a170902cf4200b0016a74022b5cmr859758plg.33.1656088909831; Fri, 24 Jun 2022 09:41:49 -0700 (PDT) Received: from noah-tgl.. ([192.55.60.37]) by smtp.gmail.com with ESMTPSA id f1-20020a635541000000b003fcfdc9946dsm1791290pgm.51.2022.06.24.09.41.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jun 2022 09:41:49 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH v2 2/2] x86: Use ARCH_P_NOT to check Prefer_No_VZeroupper in ifunc-evex.h Date: Fri, 24 Jun 2022 09:41:45 -0700 Message-Id: <20220624164145.2129377-2-goldstein.w.n@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220624164145.2129377-1-goldstein.w.n@gmail.com> References: <20220624164145.2129377-1-goldstein.w.n@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, 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: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Noah Goldstein via Libc-alpha From: Noah Goldstein Reply-To: Noah Goldstein Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" We want to Prefer_No_VZEROUPPER feature to always be false (i.e we want to prefer with vzeroupper) when building with ISA level >= 3. --- sysdeps/x86_64/multiarch/ifunc-evex.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/x86_64/multiarch/ifunc-evex.h b/sysdeps/x86_64/multiarch/ifunc-evex.h index 856c6261f8..454f3c1eab 100644 --- a/sysdeps/x86_64/multiarch/ifunc-evex.h +++ b/sysdeps/x86_64/multiarch/ifunc-evex.h @@ -51,8 +51,8 @@ IFUNC_SELECTOR (void) if (CPU_FEATURE_USABLE_P (cpu_features, RTM)) return OPTIMIZE (avx2_rtm); - if (X86_ISA_CPU_FEATURES_ARCH_P (cpu_features, - Prefer_No_VZEROUPPER)) + if (X86_ISA_CPU_FEATURES_ARCH_P_NOT (cpu_features, + Prefer_No_VZEROUPPER)) return OPTIMIZE (avx2); }