]> git.ipfire.org Git - thirdparty/qemu.git/commit
Hexagon: fix F2_conv_* instructions for negative zero
authorMatheus Tavares Bernardino <quic_mathbern@quicinc.com>
Mon, 29 Jul 2024 19:24:06 +0000 (16:24 -0300)
committerBrian Cain <bcain@quicinc.com>
Thu, 8 Aug 2024 03:34:25 +0000 (20:34 -0700)
commit6146060a6891848f854b0ed1e46e020a6fdc77c2
tree86573920bb971b4cc08ac5cd57cf1e897ec08919
parent4c395ac42e55ff8e9fd4c992e351a04b10785503
Hexagon: fix F2_conv_* instructions for negative zero

The implementation for these instructions handles -0 as an invalid float
point value, whereas the Hexagon hardware considers it the same as +0
(which is valid). Let's fix that and add a regression test.

Signed-off-by: Matheus Tavares Bernardino <quic_mathbern@quicinc.com>
Reviewed-by: Brian Cain <bcain@quicinc.com>
Reviewed-by: Taylor Simpson <ltaylorsimpson@gmail.com>
Signed-off-by: Brian Cain <bcain@quicinc.com>
target/hexagon/op_helper.c
tests/tcg/hexagon/usr.c