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

2016-09-15 Thread Peter Maydell
On 18 August 2016 at 16:35, Peter Maydell wrote: > On 17 August 2016 at 01:14, Andrew Dutcher wrote: >> All operations that take a floatx80 as an operand need to have their >> inputs checked for malformed encodings. In all of these cases, use

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

2016-08-18 Thread Peter Maydell
On 17 August 2016 at 01:14, Andrew Dutcher wrote: > All operations that take a floatx80 as an operand need to have their > inputs checked for malformed encodings. In all of these cases, use the > function floatx80_invalid_encoding to perform the check. If an invalid >

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

2016-08-16 Thread Andrew Dutcher
All operations that take a floatx80 as an operand need to have their inputs checked for malformed encodings. In all of these cases, use the function floatx80_invalid_encoding to perform the check. If an invalid operand is found, raise an invalid operation exception, and then return either NaN (for