You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The examples shown for the LA and LI insructions only work for RV32.
For RV64, any address at an offset of > +/-2GB won't work with the example shown.
The LI case has the same issue, as does the absolute addressing example (though the LI example does mention it is for an RV32i)
The text was updated successfully, but these errors were encountered:
My title was misleading. It is entirely correct that LI and LA can work with either architecture.
What doesn't work are the example in the text, which don't mention that the RV64 versions may (or may not) take more actual instructions than the text indicates. Use of these pseudo instructions may cause failure of architectural tests that trap, depending on their exact aliignment, because of this uncertainty.
I am only asking that the text clarify the conditions under which the will or won't work, and the conditions under which the example shown will and won't work.
The examples shown for the LA and LI insructions only work for RV32.
For RV64, any address at an offset of > +/-2GB won't work with the example shown.
The LI case has the same issue, as does the absolute addressing example (though the LI example does mention it is for an RV32i)
The text was updated successfully, but these errors were encountered: