target/ppc: Fix do_float_check_status vs inexact
commit16ce2fffa660aa0593afaf8e38428c8e21df4080
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 26 Aug 2019 16:54:34 +0000 (26 09:54 -0700)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 28 Aug 2019 23:46:07 +0000 (29 09:46 +1000)
tree9c309d49a6b0749daf7638cce800adfc426c5b9d
parentcbc65a8f22b29680f30a2c86da36be4aedb88b60
target/ppc: Fix do_float_check_status vs inexact

The underflow and inexact exceptions are not mutually exclusive.
Check for both of them.  Tidy the reset of FPSCR[FI].

Fixes: https://bugs.launchpad.net/bugs/1841442
Reported-by: Paul Clarke <pc@us.ibm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Paul Clarke <pc@us.ibm.com>
Message-Id: <20190826165434.18403-2-richard.henderson@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/fpu_helper.c