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]

[PATCH] gas miscompiles Power clf instruction


gas puts the arguments of the clf instruction to the wrong fields.

Fix is below.

Zoli

 Index: opcodes/ppc-opc.c
 ===================================================================
 RCS file: /cvs/src/src/opcodes/ppc-opc.c,v
 retrieving revision 1.12
 diff -u -r1.12 ppc-opc.c
 --- ppc-opc.c	2001/05/14 17:20:13	1.12
 +++ ppc-opc.c	2001/06/28 22:35:08
 @@ -2480,7 +2480,7 @@
  
  { "mtsrdin", X(31,114),	XRA_MASK,	PPC64,		{ RS, RB } },
  
 -{ "clf",     X(31,118), XRB_MASK,	POWER,		{ RT, RA } },
 +{ "clf",     X(31,118), XRB_MASK,	POWER,		{ RA, RB } },
  
  { "lbzux",   X(31,119),	X_MASK,		COM,		{ RT, RAL, RB } },
  


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