[Top] [All Lists]

Re: Disabling lwl and lwr instruction generation

To: Richard Hodges <>
Subject: Re: Disabling lwl and lwr instruction generation
From: Zhang Fuxin <>
Date: Thu, 13 Mar 2003 10:07:46 -0500
Cc: Ralf Baechle <>, Ranjan Parthasarathy <>, "''" <>
Original-recipient: rfc822;
References: <> <> <>
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020809

Richard Hodges wrote:

On Thu, 13 Mar 2003, Ralf Baechle wrote:

On Wed, Mar 12, 2003 at 10:05:20AM -0800, Ranjan Parthasarathy wrote:

Is there a way to tell gcc to not generate the lwl, lwr instructions?
Gcc will only ever generate these instructions when __attribute__((unaligned))
is used.

I got lwl and lwr from a memcpy() with two void pointers...

I quickly changed those to the (aligned) structure pointers instead, and
then memcpy() changed to ordinary word loads and stores.

So, is somebody starting a toolchain for that new Chinese CPU? :-)

I don't hear about it,but it will happen soon or later:)

We work around lwl/lwr problem by modifying toolchain from H.J. Lu's rh port.

it seems that gcc will explicitly output lwl/lwr for unaligned block copy,in other cases it will generate
ulW macros for gas to handle.


<Prev in Thread] Current Thread [Next in Thread>