From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by sourceware.org (Postfix) with ESMTPS id 886E8385737C for ; Tue, 28 Jun 2022 02:34:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 886E8385737C Received: by mail-yb1-xb2d.google.com with SMTP id g4so8363080ybg.9 for ; Mon, 27 Jun 2022 19:34:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KaYLavISrdD7rnKQa9zu8kVDgrnI+ijhrLVo4lRW1ag=; b=BRCE/cqF27WQv/yni48NbUahtz9ce2RLsJ72+SCRjFHc0X6wb7AlPYLmRcD+WsfNNr zglMQaFKyqMDARjxgXwSUFN5EGo0UuaewhylUsBY7lrdRWpxNLGazVI6wugWcaNDD4d5 67lb2pDi/zZ+0nmKYdN7qIrggcJPBcIUNbsT3KaDnJzHEzQ6lluEbl8kNvv3A/DLbtxs kGnxMnjlsv55njd54Hxxy2VjYD3m1TOGxjYvHlr73c03LnjIQNeFrgJUtvyvVEShHgpZ TWw9LYbe9/b4e1X/zZ/VgX0yjWIzWRlnvDR9TJa693MWlLavg+4QA+3wKokrNd0dpg98 c9yw== X-Gm-Message-State: AJIora8k2DO+Cd3Bwx0wywGjUAYlZhwE6P8igQLzAOKeC9lki6yYstD4 k2EeE1z+94aPI1LlV2F2/Vm7aV5G6oSqN4ejTLI= X-Google-Smtp-Source: AGRyM1vEHog3ujlGgo7UUHmP1iris56vS8VEzVJCyiTTPaxdRfm2/EGT6feTEFbF+9CPlMn4ExK49pr/IxkxzPqyXco= X-Received: by 2002:a25:b806:0:b0:663:d35d:8b8a with SMTP id v6-20020a25b806000000b00663d35d8b8amr17200168ybj.69.1656383690863; Mon, 27 Jun 2022 19:34:50 -0700 (PDT) MIME-Version: 1.0 References: <20220628010446.3464287-1-goldstein.w.n@gmail.com> <20220628020342.213807-1-goldstein.w.n@gmail.com> In-Reply-To: From: Noah Goldstein Date: Mon, 27 Jun 2022 19:34:40 -0700 Message-ID: Subject: Re: [PATCH v2] x86: Add more feature definitions to isa-level.h To: "H.J. Lu" Cc: GNU C Library , "Carlos O'Donell" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.5 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-List-Received-Date: Tue, 28 Jun 2022 02:34:52 -0000 On Mon, Jun 27, 2022 at 7:30 PM H.J. Lu wrote: > > On Mon, Jun 27, 2022 at 7:03 PM Noah Goldstein wrote: > > > > This commit doesn't change anything in itself. It is just to add > > definitions that will be needed by future patches. > > --- > > sysdeps/x86/isa-level.h | 10 ++++++++++ > > 1 file changed, 10 insertions(+) > > > > diff --git a/sysdeps/x86/isa-level.h b/sysdeps/x86/isa-level.h > > index f293aea906..024d1deb80 100644 > > --- a/sysdeps/x86/isa-level.h > > +++ b/sysdeps/x86/isa-level.h > > @@ -71,11 +71,13 @@ > > #define AVX512F_X86_ISA_LEVEL 4 > > #define AVX512VL_X86_ISA_LEVEL 4 > > #define AVX512BW_X86_ISA_LEVEL 4 > > +#define AVX512DQ_X86_ISA_LEVEL 4 > > > > /* ISA level >= 3 guaranteed includes. */ > > #define AVX_X86_ISA_LEVEL 3 > > #define AVX2_X86_ISA_LEVEL 3 > > #define BMI2_X86_ISA_LEVEL 3 > > +#define MOVBE_X86_ISA_LEVEL 3 > > > > /* NB: This feature is enabled when ISA level >= 3, which was disabled > > for the following CPUs: > > @@ -89,6 +91,14 @@ > > when ISA level < 3. */ > > #define Prefer_No_VZEROUPPER_X86_ISA_LEVEL 3 > > > > +/* ISA level >= 2 guaranteed includes. */ Have a comment for ISA level 2 here. > > +#define SSE4_2_X86_ISA_LEVEL 2 > > +#define SSSE3_X86_ISA_LEVEL 2 > > + > > +/* NB: This feature is enabled when ISA level >= 2. No CPUs should be > > + affected by this. */ > > /* Features enabled when ISA level >= 2. */ Hm? This is singular. > > > +#define Fast_Unaligned_Load_X86_ISA_LEVEL 2 > > + > > /* Both X86_ISA_CPU_FEATURE_USABLE_P and X86_ISA_CPU_FEATURES_ARCH_P > > macros are wrappers for the respective CPU_FEATURE{S}_{USABLE|ARCH}_P > > runtime checks. They differ in two ways. > > -- > > 2.34.1 > > > > > -- > H.J.