[PATCH] gas miscompiles Power clf instruction

Zoltan Hidvegi hzoli@hzoli.2y.net
Thu Jun 28 15:38:00 GMT 2001


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 } },
  



More information about the Binutils mailing list