This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Adding new PPC dialect, conflicts w/ Altivec
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Anders M Montonen <ammonton at cc dot helsinki dot fi>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 5 May 2004 23:12:57 +0930
- Subject: Re: Adding new PPC dialect, conflicts w/ Altivec
- References: <Pine.OSF.4.58.0405030115400.29999@sirppi.helsinki.fi>
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