From patchwork Fri Oct 14 18:01:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Noah Goldstein X-Patchwork-Id: 58856 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 1ADCC385734E for ; Fri, 14 Oct 2022 18:01:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1ADCC385734E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1665770506; bh=p/B1rj/33KjN4l64OM6l5sn8kRoDINAfRJkXt0ad5wM=; 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=gwDffm9vH8oj1CUMz2WYpD6tokcwxc3Jw1MloiPFg29nZmZAbyHH5wd4EyC7N3lcb Yft9A1PwIOH/bWEmkIMi59vclcbK4aBS17e6yxdS8OdWyxdhHBRKpH3fDOKohvHd2v 7M9zrtpbhtCurDXuNL+Te+6CG9E7o7vrkQMYy+Sw= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by sourceware.org (Postfix) with ESMTPS id C49FE3858C53 for ; Fri, 14 Oct 2022 18:01:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C49FE3858C53 Received: by mail-ej1-x62a.google.com with SMTP id sc25so12078108ejc.12 for ; Fri, 14 Oct 2022 11:01:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=p/B1rj/33KjN4l64OM6l5sn8kRoDINAfRJkXt0ad5wM=; b=C5cQ+y82C1bgVZYrbwi5dWz0lZKZWjedaj7RnReCDCE3+NOW4f6IeW8Tl0dghiwFrd JK3h34tcSHCpU7/+AkUBqseAJOw+a3yFWnZRi2eRjOJOO/V05Zk4pjePSAxTc01ypAQi 0a6NF3eDq1CJIEhsLrPesw6RN4NAbxPq5oLl7zOYiYAAel+ctocXlPlXG7m+m7BWlgHv eyYhqQQu4RRfj5fFhM0JMTGkAKVbEBSw2DGyytvxsKL/LtuoCcwAJi6PboBNprWkXBgk /xZi7P25m3AjqJUjxwKGPRyDv5NP6Av4fWBA5C0iErTyCZr20FPo1jqp6KwTI+x4Zxpd FF0g== X-Gm-Message-State: ACrzQf3nEcPFPuet9kFeV2gp8Fb/ZhL7zPHQ23LxmP2pA2wBwzHzC6Lg ByBCFUj6l0RAiF+xjDthtCUi10POxfiGIQ== X-Google-Smtp-Source: AMsMyM5wG435hj0GT+ZmyoD/sw/CHgUYuPsyX8/ygy+viuZyWf0lCncEBkiX51erFRyrcnPf1w5bag== X-Received: by 2002:a17:907:16a7:b0:78d:f5d4:a74e with SMTP id hc39-20020a17090716a700b0078df5d4a74emr4364497ejc.9.1665770483160; Fri, 14 Oct 2022 11:01:23 -0700 (PDT) Received: from noahgold-DESK.an.intel.com ([192.55.60.38]) by smtp.gmail.com with ESMTPSA id a16-20020a170906191000b0078ae49ad169sm1914795eje.91.2022.10.14.11.01.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Oct 2022 11:01:22 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH v2 1/3] x86: Update evex256/512 vec macros Date: Fri, 14 Oct 2022 13:01:12 -0500 Message-Id: <20221014180114.6958-1-goldstein.w.n@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221014164008.1325863-1-goldstein.w.n@gmail.com> References: <20221014164008.1325863-1-goldstein.w.n@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.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, URIBL_BLACK 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" 1) Make section only define if there is not a previous definition 2) Add `VEC_lo` definition for proper reg-width but in the ymm/zmm0-15 range. This commit does not change libc.so Tested build on x86-64 --- sysdeps/x86_64/multiarch/evex256-vecs.h | 7 +++++-- sysdeps/x86_64/multiarch/evex512-vecs.h | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/sysdeps/x86_64/multiarch/evex256-vecs.h b/sysdeps/x86_64/multiarch/evex256-vecs.h index 222ba46dc7..4fccabd4b8 100644 --- a/sysdeps/x86_64/multiarch/evex256-vecs.h +++ b/sysdeps/x86_64/multiarch/evex256-vecs.h @@ -28,8 +28,11 @@ #include "evex-vecs-common.h" #define USE_WITH_EVEX256 1 -#define SECTION(p) p##.evex -#define VEC VEC_ymm +#ifndef SECTION +# define SECTION(p) p##.evex +#endif +#define VEC VEC_ymm +#define VEC_lo VEC_any_ymm #endif diff --git a/sysdeps/x86_64/multiarch/evex512-vecs.h b/sysdeps/x86_64/multiarch/evex512-vecs.h index d1784d5368..fecc2d3925 100644 --- a/sysdeps/x86_64/multiarch/evex512-vecs.h +++ b/sysdeps/x86_64/multiarch/evex512-vecs.h @@ -28,8 +28,11 @@ #include "evex-vecs-common.h" #define USE_WITH_EVEX512 1 -#define SECTION(p) p##.evex512 -#define VEC VEC_zmm +#ifndef SECTION +# define SECTION(p) p##.evex512 +#endif +#define VEC VEC_zmm +#define VEC_lo VEC_any_zmm #endif