From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by sourceware.org (Postfix) with ESMTPS id 8BFCE38346A0 for ; Tue, 28 Jun 2022 03:26:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8BFCE38346A0 Received: by mail-pj1-x1033.google.com with SMTP id b12-20020a17090a6acc00b001ec2b181c98so14478689pjm.4 for ; Mon, 27 Jun 2022 20:26:06 -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=Gt8CXwEssbd3D0jHb4W6NLix8oLKWSCuej8ohfor3do=; b=CWs0VPhg+yWGOUrqhDAjJMQLBjzl0eJHCBlT9gLZTBOiG3AwGWuwMtoq43StrIglYg S2m03ixeWiq91sS/psyNAQdG99nsfWVCObpY0YZvY4vm3oTjWzd1d2yFRcbZjC/Ad5jw DZv5Uu1meqHbSXm+Nt8Jg+y2N1Q7kQjR+gdvGa4/DYti4dO+SK2C9tT5M/iIgeel3YFm zADDDsklBqBXQvYON5EFGotg9HH8AjzkttsMjyI+cTOfAQFrVqNOA5eK+z48Lgorlwlt YXyY007adkii5Hb+Ej+G3N6ejzcJFsmcygZSmmlWScK0lHMXayKz4Pttw3ajyUwblj+M wBow== X-Gm-Message-State: AJIora8o3BBFyqEP9yx05WxBs85jqPyd3h3TBtXwPWWTI2AAl+0TJwNn OOLHu0KRwklV3/q4RV/dbjk+YZoMYeg= X-Google-Smtp-Source: AGRyM1togozY9Rcc4/iKymbjyvGb9IRgNysUsXrJdmUf5sa6ycDcrKZtY4hviQxfNWm80InayTg5wg== X-Received: by 2002:a17:90b:2285:b0:1ec:aa3f:8dc1 with SMTP id kx5-20020a17090b228500b001ecaa3f8dc1mr4178765pjb.145.1656386765482; Mon, 27 Jun 2022 20:26:05 -0700 (PDT) Received: from noah-tgl.. ([2600:1010:b016:fb15:ad7e:a465:b31a:6f06]) by smtp.gmail.com with ESMTPSA id m7-20020a1709026bc700b0016b8b5ef703sm839633plt.55.2022.06.27.20.26.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 20:26:05 -0700 (PDT) From: Noah Goldstein To: libc-alpha@sourceware.org Subject: [PATCH v3] x86: Add more feature definitions to isa-level.h Date: Mon, 27 Jun 2022 20:26:02 -0700 Message-Id: <20220628032602.218678-1-goldstein.w.n@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220628010446.3464287-1-goldstein.w.n@gmail.com> References: <20220628010446.3464287-1-goldstein.w.n@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-List-Received-Date: Tue, 28 Jun 2022 03:26:07 -0000 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sysdeps/x86/isa-level.h b/sysdeps/x86/isa-level.h index f293aea906..443631662f 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,13 @@ when ISA level < 3. */ #define Prefer_No_VZEROUPPER_X86_ISA_LEVEL 3 +/* ISA level >= 2 guaranteed includes. */ +#define SSE4_2_X86_ISA_LEVEL 2 +#define SSSE3_X86_ISA_LEVEL 2 + +/* This feature is enabled when ISA level >= 2. */ +#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