Received: from eggs.gnu.org ([2001:4830:134:3::10]:44926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c47z4-00082M-Dm for qemu-devel@nongnu.org; Tue, 08 Nov 2016 10:06:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c47z0-0000wi-E5 for qemu-devel@nongnu.org; Tue, 08 Nov 2016 10:06:45 -0500 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:35058) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c47z0-0000vf-6W for qemu-devel@nongnu.org; Tue, 08 Nov 2016 10:06:42 -0500 Received: by mail-wm0-x241.google.com with SMTP id a20so12427749wme.2 for ; Tue, 08 Nov 2016 07:06:39 -0800 (PST) Sender: Richard Henderson References: <20161107144445.14069-1-kbastian@mail.uni-paderborn.de> <20161107144445.14069-2-kbastian@mail.uni-paderborn.de> <036ccf78-710b-074a-1e6b-e3948061ee5f@twiddle.net> <55ef6c4f-034b-a3a0-7235-9412ed028763@mail.uni-paderborn.de> From: Richard Henderson Message-ID: <1702f187-c135-eba2-0901-4b8f22284ecd@twiddle.net> Date: Tue, 8 Nov 2016 16:06:35 +0100 MIME-Version: 1.0 In-Reply-To: <55ef6c4f-034b-a3a0-7235-9412ed028763@mail.uni-paderborn.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 1/5] target-tricore: Added FTOUZ instruction List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bastian Koppelmann , qemu-devel@nongnu.org On 11/08/2016 02:37 PM, Bastian Koppelmann wrote: > Consider 0x836d4e86 as an input which is clearly negative, however > float_flag_invalid is not set. The hardware on the other hand does set it. Hmm. This is -0x1.da9d0cp-121. Softfloat claims that we should round to zero first, and only if the result is still < 0, raise invalid. Which does sound plausible as a common behaviour. Does your hardware raise invalid for true -0.0, i.e. 0x80000000? r~