This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: mips16/mips64 frame ptr to stack ptr
- To: Gavin Koch <gavin at cygnus dot com>
- Subject: Re: mips16/mips64 frame ptr to stack ptr
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sun, 22 Feb 1998 15:06:52 -0700
- cc: Nigel Stephens <nigel at algor dot co dot uk>, egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <m0y6eYM-0006vBC@cetus.cygnus.com>you write:
> Nigel Stephens writes:
> > * config/mips/mips.c (mips_move_1_word): We can't do a simple
> "lwu" for unsigned loads in 64-bit mode with -mips16 if the
> > base register is the stack pointer, instead we have do do
> > a "lw" and manually zero-extend.
>
> I thought about doing this too, but this produces an instruction
> of length 3, while the md file asserts that the length is only
> 1. I believe it's better to keep the assertions consistent and
> generate worse code, but I'm certainly not the final word on
> this.
Can we detect this case and either generate the right length info
in the md file, or adjust it via INSN_ADJUST_LENGTH?
Jeff