From patchwork Fri Nov 8 19:18:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Noah Goldstein X-Patchwork-Id: 100653 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 867423858416 for ; Fri, 8 Nov 2024 19:18:50 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-qv1-xf32.google.com (mail-qv1-xf32.google.com [IPv6:2607:f8b0:4864:20::f32]) by sourceware.org (Postfix) with ESMTPS id A710D3858D20 for ; Fri, 8 Nov 2024 19:18:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A710D3858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A710D3858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::f32 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731093510; cv=none; b=qsyrVOcaIkPbig3k4DQnVi/L7VLwskcZPwCH+tjJysk0NWl/v+YUBh8h54BoSuFjBUplpX7GAxXCgf7IvWwUi5VJtidQsMj+kEnY309GzmlCcQpAPvQcuEA+el2Gc7A3wzLq//XQzrRiSriKbQGZsGTqQ9azINHZCQSUxTH/HxU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731093510; c=relaxed/simple; bh=U5rEpe7Aro8xcsdqs/EIUfXUcn4d9NQpn3gfsZMrsLM=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=fj6tEvWpmqIP5kVICjMqkod6+NXEK/hlkREMt3yghgwasW4x/8bk7P7tFD3A/ReG5kHaFtxVaNlLtzzNma+O9ucH2OJJlLMaYUMdcx47WQnvKbXWoZPswdfh58pC+ZMXxTK5vEwMo3yxONjAckHTFtDnDKXwuH03Bgcnd4d58JY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-qv1-xf32.google.com with SMTP id 6a1803df08f44-6ce3fc4e58bso13184916d6.0 for ; Fri, 08 Nov 2024 11:18:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731093505; x=1731698305; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9aATY1382xbVz2GnhY2j4Y7lCKcBf7XeZ9N3rE0sTyA=; b=hisOf5cVc0jtgypWzlVeMeIufrRhgbeljOWXvsob9TpTJtXANo4INx3h9505E72bjK GmV5rniIpIm8CBm4fwx2LclBqc1bdo7AvdMw4Z86b7lkJpVx5FVukHmoReWZbUxvLaYy 58fdgOBqWlf6RchTzQ/igCbO4vQXxT15OycZlr/xfNweXfZ+bdDXDN8SzUCWumbOOaIs RAwbQ9Go8/mAzNpbquxV6kTJUNgv7xh9/XgHJiStD+2nKO8uZ9ssgojwHy2g0SCmVwUA YeO1zu0ksh5Fc0wpcz9lY6690KssOPWeYQUe+eHPq532Hvi5ccslnNgY+DRjUIfMHOv7 uAMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731093505; x=1731698305; 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=9aATY1382xbVz2GnhY2j4Y7lCKcBf7XeZ9N3rE0sTyA=; b=dJVMc6mp52zpK6Uw3l/RQpiRYSD1G6pjnSAJLgNdQTwP1/y5zhDlU8NKkJ5OPsPGHG jo3AZ76iS/yPU6+abRPyy4MWE+PWlBYjxGjHNeSw8o/U/DVLF364LsounfFS7n36BKmz Td2vLpGHidP8vQ880MaCIMSIqyx9OcC1ud0sgFQcfXOuM+LnDxXSQpuQ5mWwCPnR26hn vJdurb976O+6yKDjY4pbjCjrNSZaFCtm+cDdvS1lsmy6vy2tN+c9fcQGgv/BYmooU0DX oigsp6hkVXllrxYRnuYn9yzAciPvA3p/BRJN2pOpyQf5Zj42Evxu2ogtW9/TWp4FHuLl y0Tw== X-Gm-Message-State: AOJu0Ywf4PnYHtMl8rs64HzqZuEAgD2X6GR9fteb4u84wXrIGYBXGlCF Nd0e7vw0fltzi2x7unGqGfYc6ouuylPSHyfSLMAWgQUCbxsT5gEtKDlLYA== X-Google-Smtp-Source: AGHT+IHVCTxWeM2MIxel1HfYFpGrwUZHVvGjc1hG2o3fxkT9s1R20X2ezOzIjFopHF3jcTL2H5PUIw== X-Received: by 2002:a05:6214:4804:b0:6d1:7438:7b94 with SMTP id 6a1803df08f44-6d39e1ccfffmr53042566d6.47.1731093504737; Fri, 08 Nov 2024 11:18:24 -0800 (PST) Received: from noahgold-desk.intel.com ([192.55.54.43]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6d396631aeesm22368726d6.120.2024.11.08.11.18.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2024 11:18:24 -0800 (PST) From: Noah Goldstein To: libc-alpha@sourceware.org Cc: goldstein.w.n@gmail.com, hjl.tools@gmail.com Subject: [PATCH v1] x86/string: Use `movsl` instead of `movsd` [BZ #32344] Date: Fri, 8 Nov 2024 11:18:17 -0800 Message-Id: <20241108191817.282412-1-goldstein.w.n@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-12.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 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.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org `ld`, starting at 2.40, emits a warning when using `movsd`. There is no change to the actual code produced. Reviewed-by: H.J. Lu --- sysdeps/x86_64/multiarch/strcpy-evex.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/x86_64/multiarch/strcpy-evex.S b/sysdeps/x86_64/multiarch/strcpy-evex.S index 4f5bd3ba55..be1d65453c 100644 --- a/sysdeps/x86_64/multiarch/strcpy-evex.S +++ b/sysdeps/x86_64/multiarch/strcpy-evex.S @@ -45,7 +45,7 @@ # define VPCMPEQ vpcmpeqd # define CHAR_SIZE 4 -# define REP_MOVS rep movsd +# define REP_MOVS rep movsl # define USE_WIDE_CHAR # else