diff options
author | Alec Roelke <ar4jc@virginia.edu> | 2017-12-04 22:54:35 -0500 |
---|---|---|
committer | Alec Roelke <ar4jc@virginia.edu> | 2018-01-16 16:23:31 +0000 |
commit | 34364ffc156ce32ca100bb1a2006468d348d86b9 (patch) | |
tree | b23c6760399bddd1006a2d159bab38736efc9c75 /src/arch/sparc | |
parent | 694672093ece3253c984d8809f64440022a82978 (diff) | |
download | gem5-34364ffc156ce32ca100bb1a2006468d348d86b9.tar.xz |
arch-riscv: Fix floating-point conversion bugs
Using the fetestexcept function to check for specific types of floating
point exceptions is unreliable for some kinds of
floating-point-to-integer conversion operations. RISC-V code used to
make use of them to check for some exceptional cases like overflow and
underflow, which caused incorrect output when compiler optimization is
turned on. This patch changes the use of fetestexcept to explicit checks
for those exceptional cases.
Change-Id: Id983906ea0664dc246e115a9e470d9ab7733bde1
Reviewed-on: https://gem5-review.googlesource.com/6402
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Alec Roelke <ar4jc@virginia.edu>
Diffstat (limited to 'src/arch/sparc')
0 files changed, 0 insertions, 0 deletions