From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from hall.aurel32.net (hall.aurel32.net [IPv6:2001:bc8:30d7:100::1]) by sourceware.org (Postfix) with ESMTPS id C206E3858D38 for ; Mon, 3 Oct 2022 22:04:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C206E3858D38 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=aurel32.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=aurel32.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aurel32.net ; s=202004.hall; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date: Subject:Cc:To:From:Content-Type:From:Reply-To:Subject:Content-ID: Content-Description:In-Reply-To:References:X-Debbugs-Cc; bh=+f4RsSwWaNx6wST/asOLn1mVB2zQno9B8RzaQlT+rQA=; b=ywOpzvxTN3pLnpddf3jwMe/3OX C2n10K0DHxhe5Qvx9xR5QIMxCXRLhlYVNNENgSvFLrbhAzfoQUlOw4On3MgHmGZba83IMMtgY6Fg5 CmxBy0kwUunvS2udGtn+o0I5bQTWVAdbf07r/TvqF/rTB1bmk7MQD9yy5f47D30DD2A7a6dZl4DQB 2ORI+y8nMXeDYjG5XJ/DRRbfbZ7C0I3mEiBZHkN26lME+6FjbUr2p3BJNsOM4ZCeJtUMVaKwtn+QV u2iGAaPSgkpX4sUw/x29SstmNJhk1RFC90Xr+Nw21h5p7dVxrxP8TLK+YsK+DtIneWsOZqdGjc5wL 2rWcwvWQ==; Received: from [2a01:e34:ec5d:a741:8a4c:7c4e:dc4c:1787] (helo=ohm.rr44.fr) by hall.aurel32.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ofTYQ-00GLPd-Em; Tue, 04 Oct 2022 00:04:50 +0200 Received: from aurel32 by ohm.rr44.fr with local (Exim 4.96) (envelope-from ) id 1ofTYP-00Dq2u-2J; Tue, 04 Oct 2022 00:04:49 +0200 From: Aurelien Jarno To: libc-stable@sourceware.org Cc: Aurelien Jarno , Noah Goldstein Subject: [COMMITTED 2.33 1/8] x86: include BMI1 and BMI2 in x86-64-v3 level Date: Tue, 4 Oct 2022 00:04:41 +0200 Message-Id: <20221003220448.3298308-1-aurelien@aurel32.net> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,SPF_HELO_PASS,SPF_NONE,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 List-Id: The "System V Application Binary Interface AMD64 Architecture Processor Supplement" mandates the BMI1 and BMI2 CPU features for the x86-64-v3 level. Reviewed-by: Noah Goldstein (cherry picked from commit b80f16adbd979831bf25ea491e1261e81885c2b6) --- sysdeps/x86/get-isa-level.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sysdeps/x86/get-isa-level.h b/sysdeps/x86/get-isa-level.h index aa80f56ca6..785c25a835 100644 --- a/sysdeps/x86/get-isa-level.h +++ b/sysdeps/x86/get-isa-level.h @@ -47,6 +47,8 @@ get_isa_level (const struct cpu_features *cpu_features) isa_level |= GNU_PROPERTY_X86_ISA_1_V2; if (CPU_FEATURE_USABLE_P (cpu_features, AVX) && CPU_FEATURE_USABLE_P (cpu_features, AVX2) + && CPU_FEATURE_USABLE_P (cpu_features, BMI1) + && CPU_FEATURE_USABLE_P (cpu_features, BMI2) && CPU_FEATURE_USABLE_P (cpu_features, F16C) && CPU_FEATURE_USABLE_P (cpu_features, FMA) && CPU_FEATURE_USABLE_P (cpu_features, LZCNT) -- 2.35.1