From patchwork Mon Aug 12 07:55:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 19001 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f72.google.com (mail-yh0-f72.google.com [209.85.213.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A4C99248EC for ; Mon, 12 Aug 2013 07:55:06 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id z20sf2530796yhz.3 for ; Mon, 12 Aug 2013 00:55:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:delivered-to:message-id:date:from:user-agent :mime-version:to:cc:subject:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=99kB9j80T0iYYl1gv8DIVgDLc7YJGFan2j55lRVCHcQ=; b=Rw+dOp/lnPIIvdrfNSU7M64iI2oaoXwYKe9Ck9pLc5fHg/G6+YWIvWIr1pdWVuDwL4 +wtrOdyEeBYnG263o0Izrf3dc3n8PAtnRQrLJ8yglHgeFlY1pcbQaY6pu1NJ/E6mvN7y Vh1vEgY1AzDkI/29u1VzSwGJwbqnWIaDmOvtxxX8kYC4zLre9VMfSsESvNEneyLoLas1 5twoiKL8X0d6Td5XwNGaGGvH8iSBhgNdyzr+Wrm0MFqWJpdePt+TJkP/zggPrwluKp8l hFDpqD/n2RBFvb+v20rmRlo+5tpHs50V65maK2xAMO+wJ/7ed5rCj08KpcgQD4bOZ5kx mq0w== X-Received: by 10.224.173.4 with SMTP id n4mr22971307qaz.3.1376294105896; Mon, 12 Aug 2013 00:55:05 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.14.106 with SMTP id o10ls251062qec.36.gmail; Mon, 12 Aug 2013 00:55:05 -0700 (PDT) X-Received: by 10.52.117.208 with SMTP id kg16mr9658203vdb.48.1376294105722; Mon, 12 Aug 2013 00:55:05 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id s17si7985417vcu.89.2013.08.12.00.55.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 12 Aug 2013 00:55:05 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id hf12so2555643vcb.27 for ; Mon, 12 Aug 2013 00:55:05 -0700 (PDT) X-Gm-Message-State: ALoCoQl+ECexQ7uCwCcu9wqnycu3xaffM6CYjProsI6d/HcDDo2fh3lzfVuk34j15PTN3BnQKLOW X-Received: by 10.58.134.84 with SMTP id pi20mr9529757veb.55.1376294105653; Mon, 12 Aug 2013 00:55:05 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp82744vcz; Mon, 12 Aug 2013 00:55:05 -0700 (PDT) X-Received: by 10.180.205.236 with SMTP id lj12mr5758037wic.22.1376294104667; Mon, 12 Aug 2013 00:55:04 -0700 (PDT) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx.google.com with ESMTPS id db10si5210850wjc.17.2013.08.12.00.55.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 12 Aug 2013 00:55:04 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of will.newton@linaro.org) client-ip=74.125.82.50; Received: by mail-wg0-f50.google.com with SMTP id m15so5196592wgh.29 for ; Mon, 12 Aug 2013 00:55:04 -0700 (PDT) X-Received: by 10.180.75.164 with SMTP id d4mr5659448wiw.58.1376294104154; Mon, 12 Aug 2013 00:55:04 -0700 (PDT) Received: from localhost.localdomain (cpc11-seac20-2-0-cust84.7-2.cable.virginmedia.com. [81.108.156.85]) by mx.google.com with ESMTPSA id l5sm14577799wia.6.2013.08.12.00.55.02 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 12 Aug 2013 00:55:03 -0700 (PDT) Message-ID: <520894D5.7060207@linaro.org> Date: Mon, 12 Aug 2013 08:55:01 +0100 From: Will Newton User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: libc-ports@sourceware.org CC: patches@linaro.org Subject: [PATCH] sysdeps/arm/armv7/multiarch/memcpy_impl.S: Improve performance. X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: will.newton@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , A small change to the entry to the aligned copy loop improves performance slightly on A9 and A15 cores for certain copies. ports/ChangeLog.arm: 2013-08-07 Will Newton * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Tighten check on entry to aligned copy loop for improved performance. --- ports/sysdeps/arm/armv7/multiarch/memcpy_impl.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/sysdeps/arm/armv7/multiarch/memcpy_impl.S b/ports/sysdeps/arm/armv7/multiarch/memcpy_impl.S index 3decad6..6e84173 100644 --- a/ports/sysdeps/arm/armv7/multiarch/memcpy_impl.S +++ b/ports/sysdeps/arm/armv7/multiarch/memcpy_impl.S @@ -369,8 +369,8 @@ ENTRY(memcpy) cfi_adjust_cfa_offset (FRAME_SIZE) cfi_rel_offset (tmp2, 0) cfi_remember_state - and tmp2, src, #3 - and tmp1, dst, #3 + and tmp2, src, #7 + and tmp1, dst, #7 cmp tmp1, tmp2 bne .Lcpy_notaligned