[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
Thu Nov 25 01:26:39 GMT 2021


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

--- Comment #53 from vklr at vkten.in <vklr at vkten.in> ---
(In reply to Luke Kenneth Casson Leighton from comment #52)
> can become:
> 
>     value = (~initial_regs[1]+2**64) + (imm) + 1
>     if imm < 0:
>         value += 2**64
> 
> always look for patterns like that, rather than duplicate complex
> identical expressions.

For this comment and comment #51, made the code short. Checked it by running,
it passes.

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


More information about the libre-soc-bugs mailing list