From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:60466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjWqX-0001K0-E0 for qemu-devel@nongnu.org; Tue, 15 Jan 2019 17:06:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gjWqR-0004Mj-1t for qemu-devel@nongnu.org; Tue, 15 Jan 2019 17:06:05 -0500 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]:43527) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gjWqJ-0004HR-7G for qemu-devel@nongnu.org; Tue, 15 Jan 2019 17:05:55 -0500 Received: by mail-pl1-x631.google.com with SMTP id gn14so1921095plb.10 for ; Tue, 15 Jan 2019 14:05:53 -0800 (PST) References: <1547467955-17245-1-git-send-email-thuth@redhat.com> <30917d5b-f8cb-e799-6c3e-3202195122b4@redhat.com> <871s5fp54s.fsf@linaro.org> <87zhs3nk1m.fsf@linaro.org> <87y37monyr.fsf@linaro.org> <87won6nfl1.fsf@linaro.org> <6cb80b50-0352-430e-0c46-85ed69f95c88@redhat.com> From: Richard Henderson Message-ID: <7556aba5-052b-8cc1-1f92-d7d0f664cfa3@linaro.org> Date: Wed, 16 Jan 2019 09:05:45 +1100 MIME-Version: 1.0 In-Reply-To: <6cb80b50-0352-430e-0c46-85ed69f95c88@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] include/fpu/softfloat: Fix compilation with Clang on s390x List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth , =?UTF-8?Q?Alex_Benn=c3=a9e?= , Peter Maydell Cc: Cornelia Huck , QEMU Developers , qemu-s390x , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , Aurelien Jarno , Richard Henderson On 1/16/19 2:29 AM, Thomas Huth wrote: > ... but at least it gives the same results as the DLGR instruction. The 64-bit > version gives different results - do we have a bug here? Yes, on your inputs. udiv_qrnnd3 requires that D be "normalized", i.e. have the most siginificant bit set. (And thus N1:N0 shifted left to match, and the returned remainder shifted right to match.) r~