From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:45064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjPzW-0008He-HU for qemu-devel@nongnu.org; Tue, 15 Jan 2019 09:46:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gjPzV-0002Rd-88 for qemu-devel@nongnu.org; Tue, 15 Jan 2019 09:46:58 -0500 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:46812) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gjPzU-0002Q8-Ea for qemu-devel@nongnu.org; Tue, 15 Jan 2019 09:46:56 -0500 Received: by mail-wr1-x442.google.com with SMTP id l9so3208021wrt.13 for ; Tue, 15 Jan 2019 06:46: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> From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: Date: Tue, 15 Jan 2019 14:46:50 +0000 Message-ID: <87won6nfl1.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Peter Maydell Cc: Richard Henderson , Thomas Huth , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= , Aurelien Jarno , Cornelia Huck , QEMU Developers , qemu-s390x Peter Maydell writes: > On Mon, 14 Jan 2019 at 22:48, Alex Benn=C3=A9e w= rote: >> >> >> Richard Henderson writes: >> > But perhaps >> > >> > unsigned __int128 n =3D (unsigned __int128)n1 << 64 | n0; >> > *r =3D n % d; >> > return n / d; >> > >> > will allow the compiler to do what the assembly does for some 64-bit >> > hosts. >> >> I wonder how much cost is incurred by the jumping to the (libgcc?) div >> helper? Anyone got an s390x about so we can benchmark the two >> approaches? > > The project has an s390x system available; however it's usually > running merge build tests so not so useful for benchmarking. > (I can set up accounts on it but that requires me to faff about > figuring out how to create new accounts :-)) I'm happy to leave this up to those who care about s390x host performance (Thomas, Cornelia?). I'm just keen to avoid the divide helper getting too #ifdefy. I'll include a CONFIG_INT128 patch in my next patch queue review once I've double checked and tested under linux-user ;-) -- Alex Benn=C3=A9e