From owner-svn-src-all@FreeBSD.ORG Sun Jun 21 13:15:56 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C980A106564A; Sun, 21 Jun 2009 13:15:56 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B7A788FC14; Sun, 21 Jun 2009 13:15:56 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5LDFuuP007771; Sun, 21 Jun 2009 13:15:56 GMT (envelope-from stas@svn.freebsd.org) Received: (from stas@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5LDFuut007769; Sun, 21 Jun 2009 13:15:56 GMT (envelope-from stas@svn.freebsd.org) Message-Id: <200906211315.n5LDFuut007769@svn.freebsd.org> From: Stanislav Sedov Date: Sun, 21 Jun 2009 13:15:56 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r194585 - head/lib/libc/arm/string X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jun 2009 13:15:57 -0000 Author: stas Date: Sun Jun 21 13:15:56 2009 New Revision: 194585 URL: http://svn.freebsd.org/changeset/base/194585 Log: - Eliminate extra subcs instruction. I have not noticed before that we always perform substraction now, so no instruction could be rordered to eliminate the conditional substraction. Modified: head/lib/libc/arm/string/strncmp.S Modified: head/lib/libc/arm/string/strncmp.S ============================================================================== --- head/lib/libc/arm/string/strncmp.S Sun Jun 21 13:13:13 2009 (r194584) +++ head/lib/libc/arm/string/strncmp.S Sun Jun 21 13:15:56 2009 (r194585) @@ -40,10 +40,9 @@ ENTRY(strncmp) /* ip == last src address to compare */ adds ip, r0, r2 - sub ip, ip, #1 /* Use last possible address on overflow. */ movcs ip, #0 - subcs ip, ip, #1 + sub ip, ip, #1 1: ldrb r2, [r0], #1 ldrb r3, [r1], #1