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] gas: sparc: allow ASR registers in the 0..31 range in V9 and later


hi Jose,

> +	* config/tc-sparc.c (sparc_ip): Remove the V9 restriction on ASR
> +	registers to be in the 16..31 range.

Approved - please apply, but...

> +                      if (num < 0 || 31 < num)
> +                        {
> +                          error_message = _(": asr number must be between 0 and 31");
> +                          goto error;
> +                        }

Please could you add a comment here, explaining the rationale that you
mentioned in your email.  That way a reader of the sources who wonders
why the assembler is not complaining about "invalid" asr names, will 
know what is going on.

Cheers
  Nick


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