[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:39:29 BST 2021
https://bugs.libre-soc.org/show_bug.cgi?id=730
--- Comment #6 from vklr at vkten.in <vklr at vkten.in> ---
(In reply to Luke Kenneth Casson Leighton from comment #5)
> (In reply to vklr at vkten.in from comment #3)
> > Need help for understanding the construct and meaning.
> >
> > initial_regs[0] = 5
> > here GPR0 is assigned value 5
>
> so on startup of the simulator, the initial reg 0 will be 5, yes.
>
> > e.intregs[3] = 0x10000
> > is it here GPR3 is reassigned the value of 0x10000
>
> and ExpectedState took a *copy* of its input GPR table,
> which was "e.intregs[0] = 5" already (GPR0=5), now GPR3 is modified
> to 0x10000
>
Shouldn't GPR3 be 5 + 0x10000 = 0x10005
> so, on completion of the execution of "addis GPR3 GPR0 1",
> we EXPECT that GPR0 is still 5,
> we EXPECT that GPR3 is 0x10000,
> we EXPECT that pc=4.
>
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list