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]
Other format: [Raw text]

Re: Adding new PPC dialect, conflicts w/ Altivec


On Mon, May 03, 2004 at 01:27:40AM +0300, Anders M Montonen wrote:
> tell the problem comes from the Altivec instructions having the
> PPC_OPCODE_PPC flag set in opcodes/ppc-opc.c. Is this really correct, or

No, it's wrong.  This also fixes PR 147.

	* ppc-opc.c (PPCVEC): Remove PPC_OPCODE_PPC.

Index: opcodes/ppc-opc.c
===================================================================
RCS file: /cvs/src/src/opcodes/ppc-opc.c,v
retrieving revision 1.69
diff -u -p -r1.69 ppc-opc.c
--- opcodes/ppc-opc.c	30 Apr 2004 07:14:40 -0000	1.69
+++ opcodes/ppc-opc.c	5 May 2004 13:41:16 -0000
@@ -1764,7 +1764,7 @@ extract_tbr (unsigned long insn,
 #define PPC440	PPC_OPCODE_440
 #define PPC750	PPC
 #define PPC860	PPC
-#define PPCVEC	PPC_OPCODE_ALTIVEC | PPC_OPCODE_PPC
+#define PPCVEC	PPC_OPCODE_ALTIVEC
 #define	POWER   PPC_OPCODE_POWER
 #define	POWER2	PPC_OPCODE_POWER | PPC_OPCODE_POWER2
 #define PPCPWR2	PPC_OPCODE_PPC | PPC_OPCODE_POWER | PPC_OPCODE_POWER2

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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