3.4, head: MIPS: Fix length calculation for unaligned transfers

Maciej W. Rozycki macro@ds2.pg.gda.pl
Wed Feb 18 13:48:00 GMT 2004


On Wed, 18 Feb 2004, Richard Sandiford wrote:

> > As you can see the lengths of "mov_lwl" and "mov_lwr" instructions are
> > calculated as 0.
> 
> Good catch.

 Awww, NFS wouldn't work on my R3k box without it, and since it's the root
file system...

> I think the right fix is to add length attributes to the unaligned
> patterns.  mips_address_insns is only really designed to handle
> simple 2-operand moves.

 Hmm, the unaligned patterns allow general memory operands -- is it
possible to calculate the number of instructions needed to load an
arbitrary address and do a transfer at this point?

> Since it's my bug, I'll drum a patch tonight.

 I'm looking forward.

  Maciej

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +



More information about the Gcc-patches mailing list