[committed] MIPS: Correct microMIPS branch opcode mask

Maciej W. Rozycki macro@codesourcery.com
Fri Jul 29 23:29:00 GMT 2011


Hi,

 I have committed this change now too.

2011-07-29  Maciej W. Rozycki  <macro@codesourcery.com>

	bfd/
	* elfxx-mips.c (bz_insn_16): Correct opcode mask.

  Maciej

binutils-umips-bz16.diff
Index: binutils-fsf-trunk-quilt/bfd/elfxx-mips.c
===================================================================
--- binutils-fsf-trunk-quilt.orig/bfd/elfxx-mips.c	2011-07-29 21:51:47.000000000 +0100
+++ binutils-fsf-trunk-quilt/bfd/elfxx-mips.c	2011-07-29 21:22:12.000000000 +0100
@@ -11987,7 +11987,7 @@ static const struct opcode_descriptor b_
   { /* "b",	"mD",		*/ 0xcc00,     0xfc00 };
 
 static const struct opcode_descriptor bz_insn_16 =
-  { /* "b(eq|ne)z", "md,mE",	*/ 0x8c00,     0xac00 };
+  { /* "b(eq|ne)z", "md,mE",	*/ 0x8c00,     0xdc00 };
 
 
 /* 32-bit and 16-bit branch EQ and NE zero.  */



More information about the Binutils mailing list