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>
pull/457/head
Paul Mackerras 2 weeks ago
parent e5651e2eab
commit f3b9566ae2

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

Loading…
Cancel
Save