Re: Disabling lwl and lwr instruction generation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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.






-Richard









[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux