Re: [Qemu-devel] [PATCH v2] fpu: add mechanism to check for invalid long double formats

2016-08-15 Thread Peter Maydell
On 14 August 2016 at 01:33, Andrew Dutcher wrote: > The macro require_valid_floatx80(value, status) will check for malformed > extended precision encodings, and if one is found, generate an > invalid-operation exception and return NaN. This check has been added to > the beginning of the basic 80-b

[Qemu-devel] [PATCH v2] fpu: add mechanism to check for invalid long double formats

2016-08-13 Thread Andrew Dutcher
The macro require_valid_floatx80(value, status) will check for malformed extended precision encodings, and if one is found, generate an invalid-operation exception and return NaN. This check has been added to the beginning of the basic 80-bit float arithmetic functions. Version 2: fix code style