From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGVF5-0001mG-5m for qemu-devel@nongnu.org; Wed, 28 Jan 2015 11:13:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGVF0-00042u-QL for qemu-devel@nongnu.org; Wed, 28 Jan 2015 11:13:23 -0500 Received: from lhrrgout.huawei.com ([194.213.3.17]:60493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGVF0-00042a-Hu for qemu-devel@nongnu.org; Wed, 28 Jan 2015 11:13:18 -0500 Message-ID: <54C90A65.4090909@huawei.com> Date: Wed, 28 Jan 2015 17:12:21 +0100 From: Claudio Fontana MIME-Version: 1.0 References: <1422456666-12270-1-git-send-email-libhu.so@gmail.com> <87h9va7vfh.fsf@linaro.org> In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH] FMULX should flushes operators to zero when FZ is set. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , =?UTF-8?B?QWxleCBCZW5uw6ll?= Cc: Xiangyu Hu , QEMU Developers Hi Peter, On 28.01.2015 16:57, Peter Maydell wrote: > On 28 January 2015 at 15:54, Alex Bennée wrote: >> Do we have test cases that trip up here? It would be nice to include >> them in our testing as the random nature of RISU has obviously failed to >> trip up on this instruction. > > Risu would probably catch this if we generated and ran test cases > which set the FPSCR bits to something other than the default. > (At least the 32-bit risugen lets you do this; I forget whether > we wired up that bit in the 64-bit support code.) > > -- PMM > If nobody improved it from my implementation, the risugen script will generate code which sets FPSR always unconditionally to 0, while the FPCR is wired up with the user-provided "fpscr" option. Not that there's any good reason behind it, probably both should be configurable.. Ciao, Claudio