[Libre-soc-isa] [Bug 817] Big Integer Math (sv.adde, sv.subfe, sv.madded, 128 by 64-bit -> 64-bit div/rem, maybe more...)
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Sun Apr 24 18:25:58 BST 2022
https://bugs.libre-soc.org/show_bug.cgi?id=817
--- Comment #15 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Jacob Lifshay from comment #14)
> no...it should instead be:
> divrem2du rt, ra, rb, rc
> v = (ra << 64) | rb;
> d = rc; // copy first in case rt is rc
> rt = UDIV(v, rc);
> ra = UREM(v, rc);
whoops, i meant:
rt = UDIV(v, d);
ra = UREM(v, d);
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Libre-SOC-ISA
mailing list