[PATCH] [NIOS2] Fix disassembly of br.n instruction.

Sandra Loosemore sandra@codesourcery.com
Wed Mar 24 22:41:37 GMT 2021


On 3/24/21 4:03 PM, Hafiz Abid Qadeer wrote:
> The code was checking wrong bit for sign extension. It caused it
> to zero-extend instead of sign-extend the immediate value.
> 
> 2021-03-24  Abid Qadeer  <abidh@codesourcery.com>
> 
> 	opcodes/
> 	* nios2-dis.c (nios2_print_insn_arg): Fix sign extension of
> 	immediate in br.n instruction.
> 
> 	gas/
> 	* testsuite/gas/nios2/brn.s: New.
> 	* testsuite/gas/nios2/brn.d: New.

This is fine -- thank you!

-Sandra


More information about the Binutils mailing list