lmw and stmw instructions not used copy functions

Dan Malek dan at embeddededge.com
Thu Feb 20 15:06:38 EST 2003


Joakim Tjernlund wrote:

> I noticed that the lmw and stmw instructions are not used in copy_page(), clear_page() etc.
> Aren't these instructions faster than a bunch of lwz/stw?

Motorola doesn't guarantee these are any faster, and most documentation indicates
they are likely to be slower.  If you look closely, you may notice that not
too many places can utilize these instructions, and often the load or store
is done to take advantages of some pipeline optimizations with comparisons
to values in well known registers.


	-- Dan


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list