[Libre-soc-bugs] [Bug 396] create simulator PowerISA div/mod functions

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Thu Jun 25 18:02:45 BST 2020


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

--- Comment #4 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #3)
> jacob can i ask you if you could check something:
> 
> can you write a function that multiplies the result by the divisor
> and checks that the result is equal to the dividend in all cases
> where overflow is *not* true, and conversely when it is not equal
> that the overflow *is* true?

That's incorrect, as the simple example of 3/2 will show:

3/2 -> 1
1*2 == 2 != 3

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


More information about the libre-soc-bugs mailing list