diff options
author | Taylor Simpson <tsimpson@quicinc.com> | 2022-02-09 18:15:54 -0800 |
---|---|---|
committer | Taylor Simpson <tsimpson@quicinc.com> | 2022-03-12 09:14:22 -0800 |
commit | 3977ba3078503fca0f182aa8a39fad2388f43cb1 (patch) | |
tree | 3876717d5b06510518f233f36bcf8077650458e2 /target/hexagon | |
parent | 8af2d9978ad2c52377fe69466a556fffeedcd057 (diff) | |
download | qemu-3977ba3078503fca0f182aa8a39fad2388f43cb1.zip qemu-3977ba3078503fca0f182aa8a39fad2388f43cb1.tar.gz qemu-3977ba3078503fca0f182aa8a39fad2388f43cb1.tar.bz2 |
Hexagon (target/hexagon) fix bug in conv_df2uw_chop
Fix typo that checked for 32 bit nan instead of 64 bit
Test case added in tests/tcg/hexagon/usr.c
Signed-off-by: Taylor Simpson <tsimpson@quicinc.com>
Message-Id: <20220210021556.9217-11-tsimpson@quicinc.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/hexagon')
-rw-r--r-- | target/hexagon/op_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/hexagon/op_helper.c b/target/hexagon/op_helper.c index 366caf9..63e5ad5 100644 --- a/target/hexagon/op_helper.c +++ b/target/hexagon/op_helper.c @@ -829,7 +829,7 @@ uint32_t HELPER(conv_df2uw_chop)(CPUHexagonState *env, float64 RssV) uint32_t RdV; arch_fpop_start(env); /* Hexagon checks the sign before rounding */ - if (float64_is_neg(RssV) && !float32_is_any_nan(RssV)) { + if (float64_is_neg(RssV) && !float64_is_any_nan(RssV)) { float_raise(float_flag_invalid, &env->fp_status); RdV = 0; } else { |