Received: from eggs.gnu.org ([2001:4830:134:3::10]:46093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBB53-0000Fu-1X for qemu-devel@nongnu.org; Tue, 24 Apr 2018 23:26:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fBB4z-0004tu-TZ for qemu-devel@nongnu.org; Tue, 24 Apr 2018 23:26:53 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:56652 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fBB4z-0004th-PO for qemu-devel@nongnu.org; Tue, 24 Apr 2018 23:26:49 -0400 References: <20180424152405.10304-1-alex.bennee@linaro.org> <20180424152405.10304-22-alex.bennee@linaro.org> From: Thomas Huth Message-ID: <118ab4fa-b0a1-ba50-0ee6-035431b889c7@redhat.com> Date: Wed, 25 Apr 2018 05:26:37 +0200 MIME-Version: 1.0 In-Reply-To: <20180424152405.10304-22-alex.bennee@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v3 21/46] tests/tcg/i386: fix test-i386-fprem List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Alex_Benn=c3=a9e?= , peter.maydell@linaro.org, cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Cc: qemu-devel@nongnu.org On 24.04.2018 17:23, Alex Benn=C3=A9e wrote: > Remove dependencies on QEMU's source tree and build directly. >=20 > Signed-off-by: Alex Benn=C3=A9e > --- > tests/tcg/i386/test-i386-fprem.c | 12 +++++++++--- > 1 file changed, 9 insertions(+), 3 deletions(-) >=20 > diff --git a/tests/tcg/i386/test-i386-fprem.c b/tests/tcg/i386/test-i38= 6-fprem.c > index 1a71623204..66f5a9657d 100644 > --- a/tests/tcg/i386/test-i386-fprem.c > +++ b/tests/tcg/i386/test-i386-fprem.c > @@ -23,7 +23,10 @@ > * along with this program; if not, see . > */ > =20 > -#include "qemu/osdep.h" > +#include > +#include > + > +#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) > =20 > /* > * Inspired by 's union ieee854_long_double, but with singl= e > @@ -39,7 +42,7 @@ union float80u { > unsigned int exponent:15; > unsigned int negative:1; > unsigned int empty:16; > - } QEMU_PACKED ieee; > + } __attribute__((packed)) ieee; > =20 > /* This is for NaNs in the IEEE 854 double-extended-precision form= at. */ > struct { > @@ -49,7 +52,7 @@ union float80u { > unsigned int exponent:15; > unsigned int negative:1; > unsigned int empty:16; > - } QEMU_PACKED ieee_nan; > + } __attribute__((packed)) ieee_nan; > }; > =20 > #define IEEE854_LONG_DOUBLE_BIAS 0x3fff > @@ -229,6 +232,7 @@ static void test_fprem_cases(void) > do_fprem_stack_underflow(); > =20 > printf("=3D invalid operation =3D\n"); > + do_fprem(q_nan.d, 1.0); > do_fprem(s_nan.d, 1.0); > do_fprem(1.0, 0.0); > do_fprem(pos_inf.d, 1.0); > @@ -238,6 +242,8 @@ static void test_fprem_cases(void) > do_fprem(pos_denorm.d, 1.0); > do_fprem(1.0, pos_denorm.d); > =20 > + do_fprem(smallest_positive_norm.d, smallest_positive_norm.d); How's that change related to the patch description? ... i.e. maybe you should mention these changes in the patch description, too? Apart from that: Reviewed-by: Thomas Huth