[Libre-soc-bugs] [Bug 509] divwe. causing assertion failure in handle_comparison

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sat Oct 3 02:57:48 BST 2020


--- Comment #2 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Jacob Lifshay from comment #1)
> Generated divwe. python code:
>     @inject()
>     def op_divwe_(self, RA, RB, RT):

>         return (overflow, RT,)

these two are the wrong way round.  what the heck they are doing
in that order i have no idea.

if you look at op_mullwu_ you'll see "return (RT, overflow)".

it could be due to them being a set.  can you take a look in
pseudo/parser and pywriter and, if necessary, bludgeon
write_regs into submission?

pywriter calls back to isa.caller "create_args()" so if you
can fudge that to sort the order, making overflow always be last
in the list returned it should "work".

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

More information about the libre-soc-bugs mailing list