Received: from eggs.gnu.org ([209.51.188.92]:50199) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gk0pG-0006yL-3Y for qemu-devel@nongnu.org; Thu, 17 Jan 2019 01:06:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gk0pE-0006rT-NC for qemu-devel@nongnu.org; Thu, 17 Jan 2019 01:06:49 -0500 References: <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> <87va2poqoz.fsf@linaro.org> <20190115200527.GB7844@flamenco> <479044cb-345a-0faa-795a-f67da0077198@redhat.com> <87a7k0zg0s.fsf@linaro.org> From: Thomas Huth Message-ID: <26dad243-d1cf-6705-c8eb-ff329590d272@redhat.com> Date: Thu, 17 Jan 2019 07:06:14 +0100 MIME-Version: 1.0 In-Reply-To: <87a7k0zg0s.fsf@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US 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: =?UTF-8?Q?Alex_Benn=c3=a9e?= Cc: "Emilio G. Cota" , Peter Maydell , Cornelia Huck , QEMU Developers , qemu-s390x , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , Aurelien Jarno , Richard Henderson On 2019-01-16 18:08, Alex Benn=C3=A9e wrote: >=20 > Thomas Huth writes: >=20 >> On 2019-01-15 21:05, Emilio G. Cota wrote: >>> On Tue, Jan 15, 2019 at 16:01:32 +0000, Alex Benn=C3=A9e wrote: >>>> Ahh I should have mentioned we already have the technology for this = ;-) >>>> >>>> If you build the fpu/next tree on a s390x you can then run: >>>> >>>> ./tests/fp/fp-bench f64_div >>>> >>>> with and without the CONFIG_128 path. To get an idea of the real wor= ld >>>> impact you can compile a foreign binary and run it on a s390x system >>>> with: >>>> >>>> $QEMU ./tests/fp/fp-bench f64_div -t host >>>> >>>> And that will give you the peak performance assuming your program is >>>> doing nothing but f64_div operations. If the two QEMU's are basicall= y in >>>> the same ballpark then it doesn't make enough difference. That said: >>> >>> I think you mean here `tests/fp/fp-bench -o div -p double', otherwise >>> you'll get the default op (-o add). >> >> I tried that now, too, and -o div -p double does not really seem to >> exercise this function at all. >=20 > How do you mean? It should do because by default it should be calling > the softfloat implementations. I've added a puts("hello") into the udiv_qrnd() function. When I then run "fp-bench -o div -p double", it only prints out "hello" a single time, so the function is only called once during the whole test. Thomas