> The problem, perhaps, is that the register clear is assuming that r0 > really is 0...??? Perhaps the first thing we should be doing is loading > r0 with a 0: > > l.movhi r0,hi(0) > l.ori r0,r0,0
I don't think that piece of code loads R0 with '0' ... Assume R0 is NOT zero then: movhi r0,hi(0) --> set MSBs to 0 ori r0,r0,0 --> logic OR of R0 with R0 and '0' ... This does NOT clear the LSBs!! Richard _______________________________________________ Linux mailing list [email protected] http://lists.openrisc.net/listinfo/linux
