[Libre-soc-bugs] [Bug 980] Implement C-based Power ISA pseudocode compiler

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sun Jan 7 23:34:59 GMT 2024


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

--- Comment #57 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Dmitry Selyutin from comment #56)
> Apart of bug #1247, the only difference we have so far after conversion is
> this:
> 
>      @inject()
>      def op_setbc(self, CR, RT):
> -        RT = copy_assign_rhs(1 if eq(CR[BI + 32], 1) else 0)
> +        if eq(CR[BI + 32], 1):
> +            RT = copy_assign_rhs(1)
> +        else:
> +            RT = copy_assign_rhs(0)
>          return (CR, RT,)

looks fine to me, though this makes me suspect that you might be mishandling
the ? : operator...

where is the code you've been committing? I don't see anything recently updated
on git.libre-soc.org, maybe it's in a repo that luke forgot to set public?

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


More information about the libre-soc-bugs mailing list