When I tried to compile the insn. l.lws the result is not occuring. only l.lwz is working fine.
Please rply if I need any correction or this is a bug? If but I will try to fix it.
If this is a bug I will try to fix it.
Hi Jeremy, Thanks for the rply. Actually while compiling the instruction l.lws the data is not loading into the respective register and stays unfinished while simulating. But while running the l.lwz insn. correct loading happening from the memory to respective register. Once if remove the l.lws insn everything is okay.
I am using modelsim. l.lbs and l.lhs works fine.
What we understand from the arch doc as the difference between them is in the generation of the memory address being: addr = sign_extended(I15:0) + (rA31:0) for l.lws addr = zero_extended(I15:0) + (rA31:0) for l.lwz
these will be different for offsets > 2^15 (ie, negative offsets).
Is this interpretation of the two instructions wrong?
Please help in this regard...