[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 13:28:03 BST 2021
https://bugs.libre-soc.org/show_bug.cgi?id=730
--- Comment #9 from klehman9 at comcast.net ---
The instruction addis 3, 0, 1
In this case RA is GPR0. Not the value of GPR0.
So the instruction is asking if RA is GPR0? It is so shift.
If RA wasn't GPR0, it takes the value in there and adds it.
So if you did:
addis 3,4,1
initial_regs[4] = 5
then you would get 0x10005
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list