This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] MIPS/GAS: Correct $at usage in PIC branch relaxation
- From: Richard Sandiford <rdsandiford at googlemail dot com>
- To: "Maciej W. Rozycki" <macro at codesourcery dot com>
- Cc: binutils at sourceware dot org
- Date: Sat, 26 Feb 2011 09:18:13 +0000
- Subject: Re: [PATCH] MIPS/GAS: Correct $at usage in PIC branch relaxation
- References: <alpine.DEB.1.10.1102242357530.20460@tp.orcam.me.uk>
"Maciej W. Rozycki" <macro@codesourcery.com> writes:
> 2011-02-24 Maciej W. Rozycki <macro@codesourcery.com>
>
> gas/
> * config/tc-mips.c (RELAX_BRANCH_ENCODE): Encode the temporary
> register to use.
> (RELAX_BRANCH_UNCOND): Adjust accordingly.
> (RELAX_BRANCH_LIKELY): Likewise.
> (RELAX_BRANCH_LINK): Likewise.
> (RELAX_BRANCH_TOOFAR): Likewise.
> (RELAX_BRANCH_AT): New macro.
> (append_insn): Encode the temporary register to use in standard
> MIPS branch relaxation.
> (relaxed_branch_length): Update according to changes to
> RELAX_BRANCH_ENCODE.
> (md_convert_frag): Use the encoded register as the temporary.
>
> gas/testsuite/
> * gas/mips/relax-at.d: New test for branch relaxation with .set
> at.
> * gas/mips/relax.s: Update to support the new test.
> * gas/mips/relax.l: Update accordingly.
> * gas/mips/relax.d: Update for multi-arch invocation.
> * gas/mips/mips.exp: Run the new test. Adjust to run "relax"
> across all applicable architectures.
OK, thanks.
Richard