This is the mail archive of the binutils@sources.redhat.com 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]

Missing 64-bit PPC instructions


	The following patch adds missing 64-bit PPC instructions to the
opcodes table for MSR and segment registers.

David


	* ppc-opc.c (powerpc_opcodes): Add rfid, mtsrd, mtsrdin, mtmsrd.

Index: ppc-opc.c
===================================================================
RCS file: /cvs/src/src/opcodes/ppc-opc.c,v
retrieving revision 1.7
diff -c -p -r1.7 ppc-opc.c
*** ppc-opc.c	2000/07/09 20:28:51	1.7
--- ppc-opc.c	2000/08/23 20:15:48
*************** const struct powerpc_opcode powerpc_opco
*** 2033,2038 ****
--- 2033,2040 ----
  { "bcr",     XLLK(19,16,0), XLBB_MASK,	PWRCOM,		{ BO, BI } },
  { "bcrl",    XLLK(19,16,1), XLBB_MASK,	PWRCOM,		{ BO, BI } },
  
+ { "rfid",    XL(19,18),	0xffffffff,	PPC64,		{ 0 } },
+ 
  { "crnot",   XL(19,33), XL_MASK,	PPCCOM,		{ BT, BA, BBA } },
  { "crnor",   XL(19,33),	XL_MASK,	COM,		{ BT, BA, BB } },
  
*************** const struct powerpc_opcode powerpc_opco
*** 2366,2371 ****
--- 2368,2375 ----
  { "mulhw",   XO(31,75,0,0), XO_MASK,	PPC,		{ RT, RA, RB } },
  { "mulhw.",  XO(31,75,0,1), XO_MASK,	PPC,		{ RT, RA, RB } },
  
+ { "mtsrd",   X(31,82),	XRB_MASK|(1<<20), PPC64,	{ SR, RS } },
+ 
  { "mfmsr",   X(31,83),	XRARB_MASK,	COM,		{ RT } },
  
  { "ldarx",   X(31,84),	X_MASK,		PPC64,		{ RT, RA, RB } },
*************** const struct powerpc_opcode powerpc_opco
*** 2384,2389 ****
--- 2388,2395 ----
  { "mulo",    XO(31,107,1,0), XO_MASK,	M601,		{ RT, RA, RB } },
  { "mulo.",   XO(31,107,1,1), XO_MASK,	M601,		{ RT, RA, RB } },
  
+ { "mtsrdin", X(31,114),	XRA_MASK,	PPC64,		{ RS, RB } },
+ 
  { "clf",     X(31,118), XRB_MASK,	POWER,		{ RT, RA } },
  
  { "lbzux",   X(31,119),	X_MASK,		COM,		{ RT, RAL, RB } },
*************** const struct powerpc_opcode powerpc_opco
*** 2432,2437 ****
--- 2438,2445 ----
  { "sle.",    XRC(31,153,1), X_MASK,	M601,		{ RA, RS, RB } },
  
  { "wrteei",  X(31,163),	XE_MASK,	PPC403,		{ E } },
+ 
+ { "mtmsrd",  X(31,178),	XRARB_MASK,	PPC64,		{ RS } },
  
  { "stdux",   X(31,181),	X_MASK,		PPC64,		{ RS, RAS, RB } },
  

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