From patchwork Tue Jun 28 15:27:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Noah Goldstein X-Patchwork-Id: 1649617 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=V3QQJn3p; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LXT6J5TPjz9sGC for ; Wed, 29 Jun 2022 01:29:28 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 99ECF38CD05A for ; Tue, 28 Jun 2022 15:29:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 99ECF38CD05A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1656430166; bh=AvAfzlnjg/PeYqEGIWN/wP+RjIoliQ5bY8GtbA1m1BY=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=V3QQJn3pTFdq7i75pY5xNQzIvFEg5HCh2kmvxbbrMiEqZNnRFQ8gGKRsTjISoIaaq OyBHRvYH/uA7pAROi/FsAeKC+YMoJ6WV+xL+yRiL2YOeMbvQLgNZ6RGQNatWlo14bI t0ZkKMIbus6PwPN4OMBAsrYUuPXCDHyZgJRJsycU= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by sourceware.org (Postfix) with ESMTPS id B266E3810B77 for ; Tue, 28 Jun 2022 15:27:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B266E3810B77 Received: by mail-pl1-x631.google.com with SMTP id x20so5776403plx.6 for ; Tue, 28 Jun 2022 08:27:39 -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:mime-version :content-transfer-encoding; bh=AvAfzlnjg/PeYqEGIWN/wP+RjIoliQ5bY8GtbA1m1BY=; b=B6uTQbt4s2+WALJ+nAWUHiUYuqbmkchwN3cKM5ApPjuLS7M/TIh74VfCkAqKJ5XSuC jCa5Pc+QKicliqaQXRaRquqX3TOYK3qnqvNvB6pncWOp+i5pDVXtwXii93Zqvtv0ZDFd cAsMxbFa3vZjnf6VZ91fE8RrWcSI7qhNQ0qyTFsSDe7eNTYxOU+KqoU5b31+XkpLiTWm pkQ8e0NvMDOtJSzl/G8iOWWe4et9r37W6N6kne6BhnQf8ltl31Tlc8pGImTH93wKPzCF wy4jJm5lYV3NcBkZTbCisyU13EBgw9HS1cHyDlBYSIu1Nf1TUX4NulCjQj5eLbFbYmxa ILvg== X-Gm-Message-State: AJIora+AEjWypNnXT+zcW8GEKVF9JJASKbMC1sbmOKTrfOBzkcoH9x4z fVtPjMPXk+CdorgyqeT0BFhvgCdd/Vk= X-Google-Smtp-Source: AGRyM1vFHvdH5jthGKcyml4r3GUGwZ+kw89uqycW5t3EDELTPMxAFyRNQd2l3DPXIz9S8Xa1nVwzhw== X-Received: by 2002:a17:90b:180f:b0:1ed:28cc:188f with SMTP id lw15-20020a17090b180f00b001ed28cc188fmr164086pjb.25.1656430058676; Tue, 28 Jun 2022 08:27:38 -0700 (PDT) Received: from noah-tgl.. ([192.55.60.43]) by smtp.gmail.com with ESMTPSA id jj2-20020a170903048200b0016a4db1343fsm9445361plb.190.2022.06.28.08.27.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jun 2022 08:27:38 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH v1 1/3] x86: Add definition for __wmemset_chk AVX2 RTM in ifunc impl list Date: Tue, 28 Jun 2022 08:27:33 -0700 Message-Id: <20220628152735.17863-1-goldstein.w.n@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-12.0 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-Patchwork-Original-From: Noah Goldstein via Libc-alpha From: Noah Goldstein Reply-To: Noah Goldstein Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" 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 251b0022d9..3ae4d49bee 100644 --- a/sysdeps/x86_64/multiarch/ifunc-impl-list.c +++ b/sysdeps/x86_64/multiarch/ifunc-impl-list.c @@ -1028,6 +1028,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)