RISC-V: Fix llrint and llround missing exceptions on RV32
authorZong Li <zongbox@gmail.com>
Fri, 30 Nov 2018 09:18:20 +0000 (17:18 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Thu, 27 Aug 2020 15:17:43 +0000 (08:17 -0700)
commit2ed993ada6fc29c0589d4818595df200e1d93a16
tree78de36190978acd6965dba58616e180856fd3759
parentb2d175cdb755277ef5579fdac914768003bfbc5c
RISC-V: Fix llrint and llround missing exceptions on RV32

Conversions from a float to a long long on 32-bit RISC-V (RV32) may not
raise the correct exceptions on overflow, it also may raise spurious
"inexact" exceptions on non overflow cases.  This patch fixes the
problem, similarly to the fix for MIPS, ARM and S390.

Reviewed-by: Maciej W. Rozycki <macro@wdc.com>
sysdeps/riscv/rv32/fix-fp-int-convert-overflow.h [new file with mode: 0644]