This is the mail archive of the binutils-cvs@sourceware.org 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]

[binutils-gdb] Bye bye PPC_OPCODE_ALTIVEC2


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9a85b496ac4e6488d427155c24f87367ab1f6b1b

commit 9a85b496ac4e6488d427155c24f87367ab1f6b1b
Author: Alan Modra <amodra@gmail.com>
Date:   Tue Apr 11 07:33:50 2017 +0930

    Bye bye PPC_OPCODE_ALTIVEC2
    
    This bit is worse than useless.  Using it prevents the assembler and
    disassembler distinguishing between opcodes added for power8 and those
    added for power9.
    
    include/
    	* opcode/ppc.h (PPC_OPCODE_ALTIVEC2): Delete.
    opcodes/
    	* ppc-dis.c (ppc_opts): Remove PPC_OPCODE_ALTIVEC2.
    	* ppc-opc.c (PPCVEC2): Define as PPC_OPCODE_POWER8|PPC_OPCODE_E6500.
    	(PPCVEC3): Define as PPC_OPCODE_POWER9.

Diff:
---
 include/ChangeLog    |  4 ++++
 include/opcode/ppc.h |  3 ---
 opcodes/ChangeLog    |  6 ++++++
 opcodes/ppc-dis.c    | 10 +++++-----
 opcodes/ppc-opc.c    |  4 ++--
 5 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/include/ChangeLog b/include/ChangeLog
index 330a656..9e3223c 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2017-04-11  Alan Modra  <amodra@gmail.com>
+
+	* opcode/ppc.h (PPC_OPCODE_ALTIVEC2): Delete.
+
 2017-04-06  Pip Cet  <pipcet@gmail.com>
 
 	* dis-asm.h: Add prototypes for wasm32 disassembler.
diff --git a/include/opcode/ppc.h b/include/opcode/ppc.h
index c4de834..c0112db 100644
--- a/include/opcode/ppc.h
+++ b/include/opcode/ppc.h
@@ -179,9 +179,6 @@ extern const int vle_num_opcodes;
 /* Opcode which is supported by the e500 family */
 #define PPC_OPCODE_E500	       0x100000000ull
 
-/* Opcode is supported by Extended Altivec Vector Unit */
-#define PPC_OPCODE_ALTIVEC2    0x200000000ull
-
 /* Opcode is supported by Power E6500 */
 #define PPC_OPCODE_E6500       0x400000000ull
 
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index d2459d6..ef69ec4 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,9 @@
+2017-04-11  Alan Modra  <amodra@gmail.com>
+
+	* ppc-dis.c (ppc_opts): Remove PPC_OPCODE_ALTIVEC2.
+	* ppc-opc.c (PPCVEC2): Define as PPC_OPCODE_POWER8|PPC_OPCODE_E6500.
+	(PPCVEC3): Define as PPC_OPCODE_POWER9.
+
 2017-04-10  Alan Modra  <amodra@gmail.com>
 
 	* ppc-dis.c (ppc_opts <476>): Remove PPC_OPCODE_440.
diff --git a/opcodes/ppc-dis.c b/opcodes/ppc-dis.c
index 82ce535..863b429 100644
--- a/opcodes/ppc-dis.c
+++ b/opcodes/ppc-dis.c
@@ -147,7 +147,7 @@ struct ppc_mopt ppc_opts[] = {
   { "e6500",   (PPC_OPCODE_PPC | PPC_OPCODE_BOOKE | PPC_OPCODE_ISEL
 		| PPC_OPCODE_PMR | PPC_OPCODE_CACHELCK | PPC_OPCODE_RFMCI
 		| PPC_OPCODE_E500MC | PPC_OPCODE_64 | PPC_OPCODE_ALTIVEC
-		| PPC_OPCODE_ALTIVEC2 | PPC_OPCODE_E6500 | PPC_OPCODE_POWER4
+		| PPC_OPCODE_E6500 | PPC_OPCODE_POWER4
 		| PPC_OPCODE_POWER5 | PPC_OPCODE_POWER6 | PPC_OPCODE_POWER7),
     0 },
   { "e500x2",  (PPC_OPCODE_PPC | PPC_OPCODE_BOOKE | PPC_OPCODE_SPE
@@ -172,12 +172,12 @@ struct ppc_mopt ppc_opts[] = {
   { "power8",  (PPC_OPCODE_PPC | PPC_OPCODE_ISEL | PPC_OPCODE_64
 		| PPC_OPCODE_POWER4 | PPC_OPCODE_POWER5 | PPC_OPCODE_POWER6
 		| PPC_OPCODE_POWER7 | PPC_OPCODE_POWER8 | PPC_OPCODE_HTM
-		| PPC_OPCODE_ALTIVEC | PPC_OPCODE_ALTIVEC2 | PPC_OPCODE_VSX),
+		| PPC_OPCODE_ALTIVEC | PPC_OPCODE_VSX),
     0 },
   { "power9",  (PPC_OPCODE_PPC | PPC_OPCODE_ISEL | PPC_OPCODE_64
 		| PPC_OPCODE_POWER4 | PPC_OPCODE_POWER5 | PPC_OPCODE_POWER6
 		| PPC_OPCODE_POWER7 | PPC_OPCODE_POWER8 | PPC_OPCODE_POWER9
-		| PPC_OPCODE_HTM | PPC_OPCODE_ALTIVEC | PPC_OPCODE_ALTIVEC2
+		| PPC_OPCODE_HTM | PPC_OPCODE_ALTIVEC
 		| PPC_OPCODE_VSX | PPC_OPCODE_VSX3 ),
     0 },
   { "ppc",     PPC_OPCODE_PPC,
@@ -216,12 +216,12 @@ struct ppc_mopt ppc_opts[] = {
   { "pwr8",    (PPC_OPCODE_PPC | PPC_OPCODE_ISEL | PPC_OPCODE_64
 		| PPC_OPCODE_POWER4 | PPC_OPCODE_POWER5 | PPC_OPCODE_POWER6
 		| PPC_OPCODE_POWER7 | PPC_OPCODE_POWER8 | PPC_OPCODE_HTM
-		| PPC_OPCODE_ALTIVEC | PPC_OPCODE_ALTIVEC2 | PPC_OPCODE_VSX),
+		| PPC_OPCODE_ALTIVEC | PPC_OPCODE_VSX),
     0 },
   { "pwr9",    (PPC_OPCODE_PPC | PPC_OPCODE_ISEL | PPC_OPCODE_64
 		| PPC_OPCODE_POWER4 | PPC_OPCODE_POWER5 | PPC_OPCODE_POWER6
 		| PPC_OPCODE_POWER7 | PPC_OPCODE_POWER8 | PPC_OPCODE_POWER9
-		| PPC_OPCODE_HTM | PPC_OPCODE_ALTIVEC | PPC_OPCODE_ALTIVEC2
+		| PPC_OPCODE_HTM | PPC_OPCODE_ALTIVEC
 		| PPC_OPCODE_VSX | PPC_OPCODE_VSX3 ),
     0 },
   { "pwrx",    PPC_OPCODE_POWER | PPC_OPCODE_POWER2,
diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c
index 4e8b9bf..8c34ec1 100644
--- a/opcodes/ppc-opc.c
+++ b/opcodes/ppc-opc.c
@@ -3089,8 +3089,8 @@ extract_vleil (unsigned long insn,
 #define PPC860	PPC_OPCODE_860
 #define PPCPS	PPC_OPCODE_PPCPS
 #define PPCVEC	PPC_OPCODE_ALTIVEC
-#define PPCVEC2	PPC_OPCODE_ALTIVEC2
-#define PPCVEC3	PPC_OPCODE_ALTIVEC2
+#define PPCVEC2	(PPC_OPCODE_POWER8 | PPC_OPCODE_E6500)
+#define PPCVEC3	PPC_OPCODE_POWER9
 #define PPCVSX	PPC_OPCODE_VSX
 #define PPCVSX2	PPC_OPCODE_VSX
 #define PPCVSX3	PPC_OPCODE_VSX3


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