From patchwork Fri Jun 24 16:42:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Noah Goldstein X-Patchwork-Id: 55381 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C15B3383D800 for ; Fri, 24 Jun 2022 16:48:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C15B3383D800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1656089323; bh=l6rSTSbgWepsdIO7ED68EPUg+IVcJR8R+tloYhUaYYc=; 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=QvZtFKXuhcLZPk+y1vxfDLwnJn0vG8JXQHD86l/97JVUlsIGw1tdAt+CmzYTOX2RH vHysGRJGeh2m5ATqjIwqpu+hbJGKwfU+jgJjpUyOnz20Rt+VXnLEFxjbNsUZgUD6Jh 35uniVOgLML6+7XBb16hUTUP6h3jynQg8FXxuqYs= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by sourceware.org (Postfix) with ESMTPS id 74366383D805 for ; Fri, 24 Jun 2022 16:42:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 74366383D805 Received: by mail-pg1-x531.google.com with SMTP id 68so2890827pgb.10 for ; Fri, 24 Jun 2022 09:42:24 -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=l6rSTSbgWepsdIO7ED68EPUg+IVcJR8R+tloYhUaYYc=; b=vkpT3W5Vmf0LQD8iifRYgCMLMp2sAeArGP67/709xi5o6QTCc4IX2VbZZ2t7F6EzFC rzrnMUlztakoL/DcZsqNclfxT+7hckU0ZIv28RRox/p2iUgZsxYDHrLNYIeLc/UEdlht Ty1i8Nknr+sePJe8KWQM+v4C6KGdSRxw8zBTHtPihHnlaISNp9vyRAgj0qwnnXHcX8Qw Zand61FEpwL2pFsvKqEIat72hxwhRQJH49SQxuDuroWEZ4clT/dNjsGa7ukuRNnuvqD5 5l9U7XSnWCqkzp3DHmUTXtRuVt7J9672by7v9SYzKtfR2bdJCzwJw0y+eSyeBRD3HEXD 9sjQ== X-Gm-Message-State: AJIora9rvAv6lnU8ZIcDULZs7E1iLjm6GrNr+1V6zzBkCBhtTEN5Kg4y AhgCvuSLttrQwomryz2tDNLrwFzogvA= X-Google-Smtp-Source: AGRyM1tMd5Po5pu5fDloahFodSgHpUPD0ysZFt0LtIv37I3u2Bfsco8YioVxNxACJ0qlDOr2KVBc/g== X-Received: by 2002:aa7:88d5:0:b0:525:7200:103 with SMTP id k21-20020aa788d5000000b0052572000103mr24010pff.63.1656088943397; Fri, 24 Jun 2022 09:42:23 -0700 (PDT) Received: from noah-tgl.. ([192.55.60.37]) by smtp.gmail.com with ESMTPSA id q18-20020a63e952000000b00408b8d98c23sm1840326pgj.78.2022.06.24.09.42.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jun 2022 09:42:23 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH v2] x86: Add comment with ISA level for all targets support by GCC12.1 Date: Fri, 24 Jun 2022 09:42:16 -0700 Message-Id: <20220624164216.2129400-5-goldstein.w.n@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220624164216.2129400-1-goldstein.w.n@gmail.com> References: <20220624164216.2129400-1-goldstein.w.n@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.8 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, 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+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" This is just a quality of life change to make it easier to see how the ISA level will effect a given build. --- sysdeps/x86/isa-level.h | 67 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 65 insertions(+), 2 deletions(-) diff --git a/sysdeps/x86/isa-level.h b/sysdeps/x86/isa-level.h index e1a30ed83e..f14ae5cc00 100644 --- a/sysdeps/x86/isa-level.h +++ b/sysdeps/x86/isa-level.h @@ -64,8 +64,71 @@ #define MINIMUM_X86_ISA_LEVEL \ (__X86_ISA_V1 + __X86_ISA_V2 + __X86_ISA_V3 + __X86_ISA_V4) - -/* +/* ISA levels for known GCC targets as of GCC12.1: + * + * amdfam10 -> 1 + * athlon-fx -> 1 + * athlon64 -> 1 + * athlon64-sse3 -> 1 + * atom -> 1 + * barcelona -> 1 + * bonnell -> 1 + * btver1 -> 1 + * core2 -> 1 + * eden-x2 -> 1 + * eden-x4 -> 1 + * k8 -> 1 + * k8-sse3 -> 1 + * nano -> 1 + * nano-1000 -> 1 + * nano-2000 -> 1 + * nano-3000 -> 1 + * nano-x2 -> 1 + * nano-x4 -> 1 + * nocona -> 1 + * opteron -> 1 + * opteron-sse3 -> 1 + * x86-64 -> 1 + * bdver1 -> 2 + * bdver2 -> 2 + * bdver3 -> 2 + * btver2 -> 2 + * core-avx-i -> 2 + * corei7 -> 2 + * corei7-avx -> 2 + * goldmont -> 2 + * goldmont-plus -> 2 + * ivybridge -> 2 + * nehalem -> 2 + * sandybridge -> 2 + * silvermont -> 2 + * slm -> 2 + * tremont -> 2 + * westmere -> 2 + * x86-64-v2 -> 2 + * alderlake -> 3 + * bdver4 -> 3 + * broadwell -> 3 + * core-avx2 -> 3 + * haswell -> 3 + * knl -> 3 + * knm -> 3 + * skylake -> 3 + * x86-64-v3 -> 3 + * znver1 -> 3 + * znver2 -> 3 + * znver3 -> 3 + * cannonlake -> 4 + * cascadelake -> 4 + * cooperlake -> 4 + * icelake-client -> 4 + * icelake-server -> 4 + * rocketlake -> 4 + * sapphirerapids -> 4 + * skylake-avx512 -> 4 + * tigerlake -> 4 + * x86-64-v4 -> 4 + * * CPU Features that are hard coded as enabled/disabled depending on * ISA build level. * - Values > 0 features are always ENABLED if: