[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 17:54:25 GMT 2021
https://bugs.libre-soc.org/show_bug.cgi?id=730
--- Comment #61 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):
>
> use this:
>
> from openpower.helpers import exts
>
> then 506 to 511 is replaced with:
>
> 506 e.intregs[3] = exts(initialregs[1], 8) & ((1<<64)-1)
>
> same for extsh and extsw except 16 and 32 as arg not 8
Done. I have updated the case_extsb with this exts function. And tests pass
successfully.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list