[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 01/15] tests: add fp-test, a floating point t
From: |
Emilio G. Cota |
Subject: |
Re: [Qemu-devel] [PATCH v3 01/15] tests: add fp-test, a floating point test suite |
Date: |
Wed, 11 Apr 2018 17:36:48 -0400 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
On Wed, Apr 11, 2018 at 02:20:49 +0100, Alex Bennée wrote:
> Emilio G. Cota <address@hidden> writes:
> So with the attached patch and my proposed cross build we can now get:
>
> 02:15:54 address@hidden:~/l/q/qemu.git] softfloat-fixes-for-2.12-v1 ± find .
> -iname "fp-test" | xargs file
> ./ppc64-linux-user/tests/fp-test: ELF 64-bit LSB executable, 64-bit
> PowerPC or cisco 7500, version 1 (GNU/Linux), statically linked, for
> GNU/Linux 3.2.0, not stripped
(snip)
> But it did mean having to hack about a little, mainly to get rid of
> glib.
That will let us build fp-test using a cross-compiler. My initial
thinking was that since we'd end up testing on a real host
(with "-t host" mode), cross-compiling wouldn't be necessary since we
could just compile natively on said host.
But since we seem to be moving towards supporting cross-compilers,
it takes little effort to cross-compile fp-test as well. The main
hurdle is to remove the glib dependence as you pointed out. I just
wrote a few patches to do this:
$ git log --oneline -5 --reverse
48e802b osdep: disable glib-compat.h include with QEMU_NO_GLIB
d3c78c7 softfloat: do not include glib headers
744a9c4 tests/tcg/Makefile: define _GNU_SOURCE
661c0e2 tests/fp: fixup
e057d45 tests/tcg/Makefile: fp-test build fixup
The main difference with your attached patch is that we remove ifdef's
from fp-test.c while keeping the osdep.h include.
You can fetch the patches from
https://github.com/cota/qemu/tree/softfloat-fixes-for-2.12-v1
[BTW the name of the branch is just to keep your original branch name;
I'm in now way intending for this to be part of 2.12 :>]
Thanks,
Emilio
- [Qemu-devel] [PATCH v3 00/15] fp-test + hardfloat, Emilio G. Cota, 2018/04/04
- [Qemu-devel] [PATCH v3 02/15] softfloat: fix {min, max}nummag for same-abs-value inputs, Emilio G. Cota, 2018/04/04
- [Qemu-devel] [PATCH v3 01/15] tests: add fp-test, a floating point test suite, Emilio G. Cota, 2018/04/04
- [Qemu-devel] [PATCH v3 04/15] softfloat: add float{32, 64}_is_{de, }normal, Emilio G. Cota, 2018/04/04
- [Qemu-devel] [PATCH v3 03/15] fp-test: add muladd variants, Emilio G. Cota, 2018/04/04
- [Qemu-devel] [PATCH v3 05/15] target/tricore: use float32_is_denormal, Emilio G. Cota, 2018/04/04
- [Qemu-devel] [PATCH v3 07/15] softfloat: rename canonicalize to sf_canonicalize, Emilio G. Cota, 2018/04/04
- [Qemu-devel] [PATCH v3 06/15] tests/fp: add fp-bench, a collection of simple floating point microbenchmarks, Emilio G. Cota, 2018/04/04
- [Qemu-devel] [PATCH v3 08/15] softfloat: add float{32, 64}_is_zero_or_normal, Emilio G. Cota, 2018/04/04
- [Qemu-devel] [PATCH v3 09/15] fpu: introduce hardfloat, Emilio G. Cota, 2018/04/04