[Libre-soc-isa] [Bug 1087] change pseudocode to prevent output register write only when causing a fp trap and output is in same regfile as input

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Wed May 24 11:10:07 BST 2023


https://bugs.libre-soc.org/show_bug.cgi?id=1087

--- Comment #26 from Jacob Lifshay <programmerjake at gmail.com> ---
current semantics of fcvttgo.:
v = fptoint(FRB)
if overflow and enabled:
    # do *not* modify RT
    CR0 = compute_rc(RT)
    trap()
else:
    RT = v
    CR0 = compute_rc(RT)

proposed semantics of fcvttgo.:
v = fptoint(FRB)
if overflow and enabled:
    RT = v # writing is fine since it can't overwrite FRB due to FPR vs. GPR
    CR0 = compute_rc(RT)
    trap()
else:
    RT = v
    CR0 = compute_rc(RT)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libre-SOC-ISA mailing list