On Sat, Mar 24, 2012 at 1:09 AM, Stefan Kristiansson < stefan.kristians...@saunalahti.fi> wrote:
> On Fri, Mar 23, 2012 at 07:41:05AM -0500, Matthew Hicks wrote: > > You should use l.movhi to clear registers as it is a better practice than > > using an uninitialized register to clear itself. > > > > IMO there are some pros and cons with both practices, > the name of the l.movhi instruction implies that the implies > that the immediate is only moved to the upper halfword > (and iirc, there is nothing in the arch spec to demand that > the lower halfword is cleared) > In the July 5, 2011 draft it seems pretty clear that the lower 16 bits must be zero. Of course, it also looks like there is an error in the description for the 64-bit case. ---Matthew Hicks
_______________________________________________ OpenRISC mailing list OpenRISC@lists.openrisc.net http://lists.openrisc.net/listinfo/openrisc