Hexagon (target/hexagon) properly handle NaN in dfmin/dfmax/sfmin/sfmax
commitd76dd816bf328a66ce57b2fb27d046656d3ab411
authorTaylor Simpson <tsimpson@quicinc.com>
Wed, 16 Feb 2022 04:39:39 +0000 (15 20:39 -0800)
committerTaylor Simpson <tsimpson@quicinc.com>
Sat, 12 Mar 2022 17:14:22 +0000 (12 09:14 -0800)
treea0b334ab4ed61bce5eab925170067c10b5f2e752
parent77ccf44453a83e17cc830df700cc072f6bcf6a71
Hexagon (target/hexagon) properly handle NaN in dfmin/dfmax/sfmin/sfmax

The float??_minnum implementation differs from Hexagon for SNaN,
it returns NaN, but Hexagon returns the other input.  So, we use
float??_minimum_number.

Test cases added to tests/tcg/hexagon/fpstuff.c

Signed-off-by: Taylor Simpson <tsimpson@quicinc.com>
Message-Id: <20220308190410.22355-1-tsimpson@quicinc.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
target/hexagon/op_helper.c
tests/tcg/hexagon/fpstuff.c