[Libre-soc-bugs] [Bug 657] unit tests needed for BCD instructions

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Tue Aug 10 21:23:05 BST 2021


--- Comment #6 from dmitry.selyutin at 3mdeb.com ---
(In reply to dmitry.selyutin from comment #4)
> As an example, attempting to convert BCD 010 to DPD yields 0x008 instead of 0x010. Will investigate it.
Never mind, I'm stupid. These are not numbers in range 0..999, these are (what
a surprise, huh?) binary coded decimals. So when they write 010... it actually
means 0b000000010000 ((0x0 << 8) | (0x1 << 4) | (0x0 << 0)).

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

More information about the libre-soc-bugs mailing list