[Libre-soc-bugs] [Bug 730] adapt ALU test cases to include expected results

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri Nov 26 13:27:30 GMT 2021


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

--- Comment #59 from vklr at vkten.in <vklr at vkten.in> ---
(In reply to Luke Kenneth Casson Leighton from comment #58)
> adde yeah looks great
> this can go into a function... ah! i found one
> 
>   36 def exts(value, bits):
>   37     sign = 1 << (bits - 1)
>   38     return (value & (sign - 1)) - (value & sign)
> 
> use this:
> 
> from openpower.helpers import exts

Running tests says: no module named openpower.helpers

git grep can't find it in both openpower-isa and soc repo

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


More information about the libre-soc-bugs mailing list