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]

[committed] Remove unused 'Y' case from mips16_macro_build


I was confused as to why the 'Y' case in mips16_macro_build swizzles
its argument, whereas all other macro_build and mips16_macro_build
arguments are preformated.  It seems to be dead code though, so this
patch removes it.

Tested on various targets and applied.

Richard


gas/
	* config/tc-mips.c (mips16_macro_build): Remove 'Y' case.

Index: gas/config/tc-mips.c
===================================================================
--- gas/config/tc-mips.c	2013-07-14 10:31:27.869873880 +0100
+++ gas/config/tc-mips.c	2013-07-14 10:32:15.477331822 +0100
@@ -5688,16 +5688,6 @@ mips16_macro_build (expressionS *ep, con
 	  MIPS16_INSERT_OPERAND (REGR32, insn, va_arg (*args, int));
 	  continue;
 
-	case 'Y':
-	  {
-	    int regno;
-
-	    regno = va_arg (*args, int);
-	    regno = ((regno & 7) << 2) | ((regno & 0x18) >> 3);
-	    MIPS16_INSERT_OPERAND (REG32R, insn, regno);
-	  }
-	  continue;
-
 	case '<':
 	case '>':
 	case '4':


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