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 08D7D38485A1 for ; Wed, 29 Jun 2022 23:07:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 08D7D38485A1 Received: by mail-pj1-x1033.google.com with SMTP id b12-20020a17090a6acc00b001ec2b181c98so947848pjm.4 for ; Wed, 29 Jun 2022 16:07:13 -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=C+O91XW29QKXvSwzfUdifJOrBdk5vtW1lznun5/Pcao=; b=4v4XxDmWal15UHtzi8UvZ/YYTfJ37QVhyzwprdN2SjuHoCzDXatZhYh9E/QyW5ybC/ xjl9Ef96siPI7sBBw01s1Nq/lm31nhbgtLH/GhErSQ9wuTSSG9j6DebXnd+5lXksBUuj XJadcD6DrPtRNG9jsKItf+McY3kkV4dnbroDypCdwGySrwj30aCRtpq7K8mPS81n6qY+ m3GVtCLHy+mCmFOZ2svqYpbVLjAgUc1fLgyPP+ajG5mjoHf+qlNMrOcInjpImM5P3WGa cRIAABo93I8UUSqCsZ6qp/1KxbyQa38KvFaFkjct/wVn2zwv9eKDfckeY2fueWKBQZnc fs4w== X-Gm-Message-State: AJIora9qKmlH8TDsciWN7LFTdaTSS+fe5Q31MrFvbEl+KjofyTzZX6nh phxvNyKWh5BXU5h3TQDjPFH5r58dI84= X-Google-Smtp-Source: AGRyM1tLJ/zett4py5eKWfni3ImmWuwz5vxULTJSsWJ6dNuBpQQ0ROMVfjKTDGmDbJ1dQmkgtcjtLg== X-Received: by 2002:a17:902:74c7:b0:16a:1be3:b7f2 with SMTP id f7-20020a17090274c700b0016a1be3b7f2mr11425258plt.42.1656544032967; Wed, 29 Jun 2022 16:07:12 -0700 (PDT) Received: from noah-tgl.. ([192.55.60.43]) by smtp.gmail.com with ESMTPSA id h13-20020aa79f4d000000b00525601ded18sm12370101pfr.92.2022.06.29.16.07.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jun 2022 16:07:12 -0700 (PDT) From: Noah Goldstein To: libc-alpha@sourceware.org Subject: [PATCH v3 1/3] x86: Add definition for __wmemset_chk AVX2 RTM in ifunc impl list Date: Wed, 29 Jun 2022 16:07:04 -0700 Message-Id: <20220629230706.1264225-1-goldstein.w.n@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220628152735.17863-1-goldstein.w.n@gmail.com> References: <20220628152735.17863-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: Wed, 29 Jun 2022 23:07:15 -0000 This was simply missing and meant we weren't testing it properly. --- sysdeps/x86_64/multiarch/ifunc-impl-list.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sysdeps/x86_64/multiarch/ifunc-impl-list.c b/sysdeps/x86_64/multiarch/ifunc-impl-list.c index e6418a5ba3..86e1054024 100644 --- a/sysdeps/x86_64/multiarch/ifunc-impl-list.c +++ b/sysdeps/x86_64/multiarch/ifunc-impl-list.c @@ -1051,6 +1051,10 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array, IFUNC_IMPL_ADD (array, i, __wmemset_chk, CPU_FEATURE_USABLE (AVX2), __wmemset_chk_avx2_unaligned) + IFUNC_IMPL_ADD (array, i, __wmemset_chk, + (CPU_FEATURE_USABLE (AVX2) + && CPU_FEATURE_USABLE (RTM)), + __wmemset_chk_avx2_unaligned_rtm) IFUNC_IMPL_ADD (array, i, __wmemset_chk, (CPU_FEATURE_USABLE (AVX512VL) && CPU_FEATURE_USABLE (AVX512BW) -- 2.34.1