From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:33871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QceeA-00085D-SH for qemu-devel@nongnu.org; Fri, 01 Jul 2011 10:24:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qcee9-0000yO-6s for qemu-devel@nongnu.org; Fri, 01 Jul 2011 10:24:42 -0400 Received: from mail-qy0-f173.google.com ([209.85.216.173]:54146) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qcee8-0000yK-Ok for qemu-devel@nongnu.org; Fri, 01 Jul 2011 10:24:40 -0400 Received: by qyk10 with SMTP id 10so687867qyk.4 for ; Fri, 01 Jul 2011 07:24:39 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4E0DD58C.2070001@jermar.eu> References: <4E0CE6A7.10901@jermar.eu> <4E0D9527.7010106@jermar.eu> <4E0DC450.4000700@jermar.eu> <4E0DD58C.2070001@jermar.eu> Date: Fri, 1 Jul 2011 16:24:39 +0200 Message-ID: From: Laurent Desnogues Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [HelenOS-devel] [sparc64] Miscomputed minimum of a group of numbers in sparc64 emulation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jakub Jermar Cc: HelenOS development mailing list , qemu-devel@nongnu.org On Fri, Jul 1, 2011 at 4:11 PM, Jakub Jermar wrote: [...] > Actually, the testcase can be further reduced into: > > .global _start > > .text > > .space 0x20 > > _start: > =A0 =A0 =A0 =A0set 110393, %i1 > =A0 =A0 =A0 =A0set 0x40, %i2 > > =A0 =A0 =A0 =A0cmp =A0%i1, %i2 > =A0 =A0 =A0 =A0udivx =A0%g0, 1, %g0 > =A0 =A0 =A0 =A0movgu =A0%xcc, %i2, %i1 > =A0 =A0 =A0 =A0cmp =A0%i1, 512 > =A0 =A0 =A0 =A0bgu =A0%xcc, 0f > =A0 =A0 =A0 =A0nop > > succ: > =A0 =A0 =A0 =A0ta 0 > > fail: > 0: > =A0 =A0 =A0 =A0ta 1 > > The presence of the `udivx` instruction seems to be essential. Even > though it has no effect on the computation, removing it will make the > testcase non-reproducible. Could you try to replace udivx with sdivx? It looks wrong too. Laurent