From patchwork Thu Oct 28 19:47:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Noah Goldstein X-Patchwork-Id: 46761 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 20F2F3858437 for ; Thu, 28 Oct 2021 19:48:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 20F2F3858437 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1635450487; bh=ZylKYZpoRxMI7GwmdyHG+kVkIqfMtIyKDgMM0+X2ZmM=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=iPOhcCieSZvPqgAaJWBWraHNUsDVhDY93U2AG9dWxDea2SwapUFdBhp2sPubeUylJ DWHmMMJEmO51KqTgsadgSx38JXubGZ52TIJRzvMbTEhCSSPf2x+rwYuVJLq9sLseiN BXWhUFRK8kk8+6SEhVfQ78XFMuSDsuhVCXV9AKR8= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) by sourceware.org (Postfix) with ESMTPS id 7AA6C3858405 for ; Thu, 28 Oct 2021 19:47:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7AA6C3858405 Received: by mail-il1-x12a.google.com with SMTP id s3so8262996ild.0 for ; Thu, 28 Oct 2021 12:47:45 -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=ZylKYZpoRxMI7GwmdyHG+kVkIqfMtIyKDgMM0+X2ZmM=; b=mrKh40livpAjzIJAQSKWAHiSJp6FYU2CNgektvqMX4Bfnt57ZwMXE40YhuETsLuFX1 CBFujSeKtari+UunzTqLS9cmvZgU26p++CYbfEbKgPeQPtfeB1gPn74oANsV3XpPNTfo jc6v+0yRZImfhDOcQlxcOeDrplE22ZTA8l593FFLbFqL23NCm0XvbCrjSSGMFcdqfi62 cPyMcIzYvAaAEZvoZlc/nZuYdNUzEVYa2+EFbK8nbmCWo339hYplEJdzjHs9biAioTaF IuYOHGn70VKqTaHRMcSV42sLX1Doz5uCGl5dLhYX0+YG5oBB+/y/WCtgtP/ZsTU9r2Go VKwQ== X-Gm-Message-State: AOAM533mfyuUic+xLz3R9kVQixieOK/BIu1H+2cjzKJwZxAylALkgGGP j2Mdn5w3Z/uJzKHawvYVcnA1QI6ACcE= X-Google-Smtp-Source: ABdhPJzvpEJ0aZ1I6j6fftK0L+2cTjQIyhmbRb+jFZM90zaV363KC/owVtmmvWanevoJI6nFAgUc+g== X-Received: by 2002:a05:6e02:1521:: with SMTP id i1mr4363022ilu.252.1635450464773; Thu, 28 Oct 2021 12:47:44 -0700 (PDT) Received: from localhost.localdomain (mobile-130-126-255-38.near.illinois.edu. [130.126.255.38]) by smtp.googlemail.com with ESMTPSA id d14sm2164704ilv.37.2021.10.28.12.47.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Oct 2021 12:47:44 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH v1] x86_64: Add memcmpeq.S to fix disable-multi-arch build Date: Thu, 28 Oct 2021 14:47:38 -0500 Message-Id: <20211028194738.82344-1-goldstein.w.n@gmail.com> X-Mailer: git-send-email 2.25.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, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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" The following commit: commit cf4fd28ea453d1a9cec93939bc88b58ccef5437a Author: Noah Goldstein Date: Tue Oct 26 19:43:18 2021 -0500 Broke --disable-multi-arch build for x86_64 because x86_64/memcmpeq.S was not defined outside of multiarch and the alias for __memcmpeq in x86_64/memcmp.S was removed. This commit fixes that issue by adding x86_64/memcmpeq.S. make xcheck passes on x86_64 with and without --disable-multi-arch --- sysdeps/x86_64/memcmpeq.S | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 sysdeps/x86_64/memcmpeq.S diff --git a/sysdeps/x86_64/memcmpeq.S b/sysdeps/x86_64/memcmpeq.S new file mode 100644 index 0000000000..f3dd1d0085 --- /dev/null +++ b/sysdeps/x86_64/memcmpeq.S @@ -0,0 +1,23 @@ +/* __memcmpeq optimized with SSE2. + Copyright (C) 2017-2021 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#ifndef memcmp +# define memcmp __memcmpeq +#endif +#define USE_AS_MEMCMPEQ 1 +#include "multiarch/memcmp-sse2.S"