1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-04-17 00:00:48 +00:00

FPU: Round to single precision for fcfid[u]s

The fcfids and fcfidus instructions weren't rounding to single
precision because r.longmask wasn't getting set.  To fix this, set
v.longmask to e_in.single for the fcfid* instructions.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
This commit is contained in:
Paul Mackerras
2025-12-09 19:38:59 +11:00
parent e5651e2eab
commit f3b9566ae2

View File

@@ -1185,6 +1185,7 @@ begin
end if;
when "10110" => -- fcfid
v.result_sign := e_in.frb(63);
v.longmask := e_in.single;
when others =>
v.result_sign := '0';
end case;