|
From: | Anton Johansson |
Subject: | Re: [PATCH v5 11/14] Hexagon (target/hexagon) Change subtract from zero to change sign |
Date: | Thu, 16 Feb 2023 14:45:35 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.0 |
On 1/31/23 23:56, Taylor Simpson wrote:
The F2_sffms instruction [r0 -= sfmpy(r1, r2)] doesn't properly handle -0. Previously we would negate the input operand by subtracting from zero. Instead, we negate by changing the sign bit. Test case added to tests/tcg/hexagon/fpstuff.c Signed-off-by: Taylor Simpson <tsimpson@quicinc.com> --- target/hexagon/op_helper.c | 2 +- tests/tcg/hexagon/fpstuff.c | 31 ++++++++++++++++++++++++++++++- 2 files changed, 31 insertions(+), 2 deletions(-)
Reviewed-by: Anton Johansson <anjo@rev.ng>
[Prev in Thread] | Current Thread | [Next in Thread] |