From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqS5J-0000mY-TB for qemu-devel@nongnu.org; Tue, 10 Dec 2013 13:31:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VqS58-0003jh-Ap for qemu-devel@nongnu.org; Tue, 10 Dec 2013 13:31:05 -0500 Sender: Richard Henderson Message-ID: <52A75DD9.9020302@twiddle.net> Date: Tue, 10 Dec 2013 10:30:49 -0800 From: Richard Henderson MIME-Version: 1.0 References: <1386604035-2507-1-git-send-email-tommusta@gmail.com> <1386604035-2507-6-git-send-email-tommusta@gmail.com> <52A65FAA.1070403@twiddle.net> <52A7565B.50704@gmail.com> In-Reply-To: <52A7565B.50704@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 05/18] target-ppc: Add ISA 2.06 divwe[u][o] Instructions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Tom Musta , qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org On 12/10/2013 09:58 AM, Tom Musta wrote: >> > The second test can never be true, since ra has 32 zero bits. >> > Thus the first test is also pointless. > Hmm. Consider the case where GPR[RA] = 0xUUUUUUUU_80000000 (U=don't care) and > GPR[RB] = 0xUUUUUUUU_FFFFFFFF. Without these checks, I do not believe overflow > will be properly detected. > Hmm. I'm not sure what I was thinking here. Ignore all that. r~