This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] MIPS/GAS: Fix register use annotation of ALNV.PS


"Maciej W. Rozycki" <macro@codesourcery.com> writes:
>  The ALNV.PS instruction lacks register use annotation for its general 
> register argument.  As a result it can be reordered into a branch delay 
> slot even if it reads a register that the branch writes.  Here's a fix.

Ouch.  So easily done.  Did someone find out the hard way, or was this
just by inspection?

> 2011-02-25  Maciej W. Rozycki  <macro@codesourcery.com>
>
> 	opcodes/
> 	* mips-opc.c (mips_builtin_opcodes): Correct register use 
> 	annotation of "alnv.ps".
>
> 	gas/testsuite/
> 	* gas/mips/alnv_ps-swap.d: New test for ALNV.PS instruction
> 	branch swapping.
> 	* gas/mips/alnv_ps-swap.s: Source for the new test.
> 	* gas/mips/mips.exp: Run the new test.

OK, thanks.

Richard


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]