From patchwork Fri Oct 14 16:40:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Noah Goldstein X-Patchwork-Id: 58846 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 E5DCE3856DF8 for ; Fri, 14 Oct 2022 16:40:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E5DCE3856DF8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1665765648; bh=p/B1rj/33KjN4l64OM6l5sn8kRoDINAfRJkXt0ad5wM=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=xteU/2hCUNgbx9QIJMVkw4YF7qdGEPZw4ofiBgxDFCJJ7qTyV2egT/GUqgjBYz566 O/qZ4NBAmGiuyiEBceaLqhE3nzdXyXsQTXJBqxjNyHW7ziShogySLX4Ue7OMsgAbTR h7hHf7HSs5kcpyYWtx/NKMjk1VtHutF1TA1AOXeQ= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-oa1-x2a.google.com (mail-oa1-x2a.google.com [IPv6:2001:4860:4864:20::2a]) by sourceware.org (Postfix) with ESMTPS id A5F033857C4D for ; Fri, 14 Oct 2022 16:40:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A5F033857C4D Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-1322d768ba7so6483388fac.5 for ; Fri, 14 Oct 2022 09:40:13 -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: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=AdcFnw5dtcN++/PJnEHR4Kk9yvf/TTkZL0RvJTc5LdKoF6Gq47SC+x8aNs0V7XxTiX xiTX9joQhhNTHogrsPjMF/QQMsnvn/qBXMHLhDG5Rt2AwyX3zHVC0t30T+RCjDR8Phfz 5ElM0ARP9mSLL4w2yHj+Nuax3IlpSJfQwyXcoUBZ5NgSOoiZYjmSyn5RLQ7T+dfU2r5v fKJqWDGA9m7Sdoe2JckWtE3uwrvWWngMWqDDMh2bt5cwToGOFMNNqODMBWtVFT/f/1DG Lu8I3lvndBbuzZXewYr5OJBZOUPp/lAKQaA1aVcKAsjlreE58KM3lCN2CWa+byoGv0MW zb5w== X-Gm-Message-State: ACrzQf3sFICa4kHxdg0NWrVjdnTAs+1wh8ZMkcE1LMNW4Nm2TOYvp8g1 t402c6hxmq0DiRJ2YaW+UVtbJtkkA1s= X-Google-Smtp-Source: AMsMyM70yHjCH0wYKkSFjFhCJBpJicwFEkcRPyB7kbu5KYCMLJSrsoavtil6j32L9riqydBGCJapag== X-Received: by 2002:a05:6870:1607:b0:131:dcec:98f6 with SMTP id b7-20020a056870160700b00131dcec98f6mr3129785oae.162.1665765612690; Fri, 14 Oct 2022 09:40:12 -0700 (PDT) Received: from noah-tgl.. ([2600:100c:b027:a965:7e38:2b0d:56ef:66a2]) by smtp.gmail.com with ESMTPSA id a10-20020a05680804ca00b003544822f725sm1326919oie.8.2022.10.14.09.40.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Oct 2022 09:40:12 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH v1 1/3] x86: Update evex256/512 vec macros Date: Fri, 14 Oct 2022 09:40:06 -0700 Message-Id: <20221014164008.1325863-1-goldstein.w.n@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-11.2 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