1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-03-09 20:18:27 +00:00

FPU: Set result sign correctly for denorm +/- 0 case

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
This commit is contained in:
Paul Mackerras
2025-12-06 17:55:11 +11:00
parent 37b1afc7f7
commit 82825a11ba

View File

@@ -911,6 +911,7 @@ begin
-- result is +/- B
e.result_sel := AIN_B;
e.result_class := r.b.class;
-- r.result_sign is already correct
else
e.result_class := ZERO;
end if;
@@ -937,6 +938,7 @@ begin
elsif r.is_addition = '1' then
-- fadd, result is A
e.result_sel := AIN_A;
e.rsgn_op := RSGN_SEL;
else
-- other things, result is zero
e.result_class := ZERO;