[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] d1eb8f: fpu: add mechanism to check for inval
From: |
GitHub |
Subject: |
[Qemu-commits] [qemu/qemu] d1eb8f: fpu: add mechanism to check for invalid long doubl... |
Date: |
Thu, 15 Sep 2016 06:00:04 -0700 |
Branch: refs/heads/master
Home: https://github.com/qemu/qemu
Commit: d1eb8f2acba579830cf3798c3c15ce51be852c56
https://github.com/qemu/qemu/commit/d1eb8f2acba579830cf3798c3c15ce51be852c56
Author: Andrew Dutcher <address@hidden>
Date: 2016-09-15 (Thu, 15 Sep 2016)
Changed paths:
M fpu/softfloat.c
M include/fpu/softfloat.h
Log Message:
-----------
fpu: add mechanism to check for invalid long double formats
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 fp-typed results) or the integer indefinite value (the
minimum representable signed integer value, for int-typed results).
For the non-quiet comparison operations, this touches adjacent code in
order to pass style checks.
Signed-off-by: Andrew Dutcher <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Message-id: address@hidden
[PMM: changed "1 << 63" to "1ULL << 63" to fix compile errors]
Signed-off-by: Peter Maydell <address@hidden>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [qemu/qemu] d1eb8f: fpu: add mechanism to check for invalid long doubl...,
GitHub <=