[patch] ppc: enable altivec instrutions by default

matthew green mrg@cygnus.com
Tue Dec 11 19:32:00 GMT 2001



hi folks.


this allows gas to assemble altivec instructions without any special
flags.  there are no testsuite regressions with this change.


OK to commit?


.mrg.



2001-12-12  matthew green  <mrg@redhat.com>

	* ppc-opc.c (PPCVEC): Include PPC_OPCODE_ANY.


Index: ppc-opc.c
===================================================================
RCS file: /cvs/src/src/opcodes/ppc-opc.c,v
retrieving revision 1.24
diff -p -r1.24 ppc-opc.c
*** ppc-opc.c	2001/11/17 22:34:17	1.24
--- ppc-opc.c	2001/12/12 03:25:06
*************** extract_tbr (insn, dialect, invalid)
*** 1578,1584 ****
  #define PPC405	PPC403
  #define PPC750	PPC
  #define PPC860	PPC
! #define PPCVEC	PPC_OPCODE_ALTIVEC | PPC_OPCODE_ANY
  #define	POWER   PPC_OPCODE_POWER | PPC_OPCODE_ANY
  #define	POWER2	PPC_OPCODE_POWER | PPC_OPCODE_POWER2 | PPC_OPCODE_ANY
  #define PPCPWR2	PPC_OPCODE_PPC | PPC_OPCODE_POWER | PPC_OPCODE_POWER2 | PPC_OPCODE_ANY
--- 1578,1584 ----
  #define PPC405	PPC403
  #define PPC750	PPC
  #define PPC860	PPC
! #define PPCVEC	PPC_OPCODE_ALTIVEC | PPC_OPCODE_ANY | PPC_OPCODE_PPC
  #define	POWER   PPC_OPCODE_POWER | PPC_OPCODE_ANY
  #define	POWER2	PPC_OPCODE_POWER | PPC_OPCODE_POWER2 | PPC_OPCODE_ANY
  #define PPCPWR2	PPC_OPCODE_PPC | PPC_OPCODE_POWER | PPC_OPCODE_POWER2 | PPC_OPCODE_ANY



More information about the Binutils mailing list