[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
Sat Oct 23 12:58:20 BST 2021


--- Comment #7 from klehman9 at comcast.net ---
You would think, and call it a quirk, R0 is usually handled differently. 
That's why in a lot of tests you see registers 3,2,1.

If you look at the psuedo code in PowerISA manual, you'll see
  if RA = 0 then RT <-EXTS(SI || 16 0)
    else RT <- (RA) + EXTS(SI || 16 0)

So basically when RA is 0 its value is ignored and the result is only shifted.

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

More information about the libre-soc-bugs mailing list