[PATCH 3 03/16] MIPS: Improve WARN for $0 constraint on MIPSR6 branches

Maciej W. Rozycki macro@orcam.me.uk
Thu Sep 17 18:48:01 GMT 2026


On Thu, 5 Feb 2026, Jovan Dmitrovic via Binutils wrote:

> Validation of warnings and error detection within branching
> instructions for the MIPS R6 architecture. The test ensures that
> the assembler generates accurate warnings when a user makes an
> error involving the use of the $0 register in branching instructions,
> thereby improving the reliability and correctness of binary outputs.
> 
> Signed-off-by: Matthew Fortune <matthew.fortune@mips.com>
> Signed-off-by: Faraz Shahbazker <fshahbazker@wavecomp.com>
> Signed-off-by: Milica Matic <milica.matic@htecgroup.com>
> 
> gas/
> 	* testsuite/gas/mips/r6-branch-constraints.l: New file.

 This change is invalid.

 It wouldn't be in its current form owing to the missing source and the 
lack of test invocation in mips.exp, but it's just that the file was 
already added with commit 6914869aa73d ("MIPS: Fix constraint issues with 
the R6 beqc and bnec instructions") and then renamed with commit 
cd4797ee0546 ("MIPS/gas: Reject $0 as source register for DAUI 
instruction").

 Also the commit heading does not correspond to the actual change made 
(see also commit 85bec12d61ca ("Improve warning message for $0 constraint 
on MIPSR6 branches")).

  Maciej


More information about the Binutils mailing list