From owner-freebsd-arm@FreeBSD.ORG Tue May 5 13:17:56 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BBB910656A4 for ; Tue, 5 May 2009 13:17:56 +0000 (UTC) (envelope-from tinguely@casselton.net) Received: from casselton.net (casselton.net [63.165.140.2]) by mx1.freebsd.org (Postfix) with ESMTP id 442628FC16 for ; Tue, 5 May 2009 13:17:56 +0000 (UTC) (envelope-from tinguely@casselton.net) Received: from casselton.net (localhost [127.0.0.1]) by casselton.net (8.14.3/8.14.3) with ESMTP id n45DHtd9044429; Tue, 5 May 2009 08:17:55 -0500 (CDT) (envelope-from tinguely@casselton.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=casselton.net; s=ccnMail; t=1241529475; bh=DOeP6K9I5V39kn13X2x+pVklZi65vSKDYZNr2qL3f8E=; h=Date:From:Message-Id:To:Subject:Cc:In-Reply-To; b=arNWe719ZjP1UGwYci1/xzng3S5ERlVDU7brTfMjHwe8WlY23nYECBjXXqpvUZSAp 1u2D02PE0Xpg8G3+m6dxtocadlOT7E5M0OOz12RrALARSvHjD54pPyYZIE7MrwiPit 62cGp2h4RhuW81USu6D2M7ks84H3s4ctyKP0sXe0= Received: (from tinguely@localhost) by casselton.net (8.14.3/8.14.2/Submit) id n45DHtKW044428; Tue, 5 May 2009 08:17:55 -0500 (CDT) (envelope-from tinguely) Date: Tue, 5 May 2009 08:17:55 -0500 (CDT) From: Mark Tinguely Message-Id: <200905051317.n45DHtKW044428@casselton.net> To: tinguely@casselton.net, venkiece2005@gmail.com In-Reply-To: <6d53329e0905050004k27d957bve15d37113b5fedbb@mail.gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.1.10 (casselton.net [127.0.0.1]); Tue, 05 May 2009 08:17:55 -0500 (CDT) Cc: channa.kad@gmail.com, freebsd-arm@freebsd.org Subject: Re: strncmp issue X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 May 2009 13:17:57 -0000 > I have tested strncmp("abcdefg", "abcdefh", 6) without beq 2f. > It returns zero not -1. > > I have checked with conditional assembler but not normal assembler. > The beq 2f is required for normal assembler. > Right/Wrong? Yes, the compiler with FreeBSD-current needs the "beq 2f". Can can one do 2 unconditional "cmp" in sequence without losing the condition codes of the first "cmp"? I am sure this is becoming a 'bikeshed' topic. I built way more than my share of the shed. So, as long as it works, I will be happy. --Mark.