Bye bye PPC_OPCODE_HTM and -mhtm
authorAlan Modra <amodra@gmail.com>
Mon, 10 Apr 2017 22:10:24 +0000 (07:40 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 10 Apr 2017 22:10:24 +0000 (07:40 +0930)
The -mhtm option is fairly useless too.

include/
* opcode/ppc.h (PPC_OPCODE_HTM): Delete.
gas/
* config/tc-ppc.c (md_show_usage): Delete mention of -mhtm.
* testsuite/gas/ppc/htm.d: Pass -mpower8 and -Mpower8.
opcodes/
* ppc-dis.c (ppc_opts): Remove PPC_OPCODE_HTM and "htm".
* ppc-opc.c (PPCHTM): Define as PPC_OPCODE_POWER8.

gas/ChangeLog
gas/config/tc-ppc.c
gas/testsuite/gas/ppc/htm.d
include/ChangeLog
include/opcode/ppc.h
opcodes/ChangeLog
opcodes/ppc-dis.c
opcodes/ppc-opc.c

index f7a8628ce394ceb627608b1bdd9fa2a9f6aca129..c37ae220dda41522f793eb0183f5fff4357eb026 100644 (file)
@@ -1,3 +1,8 @@
+2017-04-11  Alan Modra  <amodra@gmail.com>
+
+       * config/tc-ppc.c (md_show_usage): Delete mention of -mhtm.
+       * testsuite/gas/ppc/htm.d: Pass -mpower8 and -Mpower8.
+
 2017-04-10  Max Filippov  <jcmvbkbc@gmail.com>
 
        * config/tc-xtensa.c (xtensa_maybe_create_literal_pool_frag):
index 47cc875690008f342c7b58c0de32943786fef715..e8dfbc4bb603f873cdf1d42f24b2abadfb165b78 100644 (file)
@@ -1346,7 +1346,6 @@ PowerPC options:\n\
   fprintf (stream, _("\
 -maltivec               generate code for AltiVec\n\
 -mvsx                   generate code for Vector-Scalar (VSX) instructions\n\
--mhtm                   generate code for Hardware Transactional Memory\n\
 -me300                  generate code for PowerPC e300 family\n\
 -me500, -me500x2        generate code for Motorola e500 core complex\n\
 -me500mc,               generate code for Freescale e500mc core complex\n\
index 72be11aeefae1f950c589440e431dbc47fca3c0e..44a22881851e182ce545621c28a4c7b174edd2db 100644 (file)
@@ -1,5 +1,5 @@
-#as: -mhtm
-#objdump: -dr -Mhtm
+#as: -mpower8
+#objdump: -dr -Mpower8
 #name: Hardware Transactional Memory (HTM) tests
 
 .*
index e6a92a87393251b3a6e27b4bd7e8b0bbb9dae674..aa2d317a21a474384c27ca354dbaaf2bb43561e4 100644 (file)
@@ -2,6 +2,7 @@
 
        * opcode/ppc.h (PPC_OPCODE_ALTIVEC2): Delete.
        (PPC_OPCODE_VSX3): Delete.
+       (PPC_OPCODE_HTM): Delete.
 
 2017-04-06  Pip Cet  <pipcet@gmail.com>
 
index 8c41cdcfdc1e969090752b436e1ce373e0ec8d78..83392e892203ee3cb09124ac3ffaaff6b3345a79 100644 (file)
@@ -191,11 +191,6 @@ extern const int vle_num_opcodes;
 /* Opcode is only supported by Power8 architecture.  */
 #define PPC_OPCODE_POWER8     0x2000000000ull
 
-/* Opcode which is supported by the Hardware Transactional Memory extension.  */
-/* Currently, this is the same as the POWER8 mask.  If another cpu comes out
-   that isn't a superset of POWER8, we can define this to its own mask.  */
-#define PPC_OPCODE_HTM        PPC_OPCODE_POWER8
-
 /* Opcode is supported by ppc750cl.  */
 #define PPC_OPCODE_750       0x4000000000ull
 
index eb432a7045b8cba101c873deff5f29ab06c736ba..7d501be23d4394eaa3581df13be4d873f3f1c489 100644 (file)
@@ -1,11 +1,12 @@
 2017-04-11  Alan Modra  <amodra@gmail.com>
 
-       * ppc-dis.c (ppc_opts): Remove PPC_OPCODE_ALTIVEC2 and
-       PPC_OPCODE_VSX3.
+       * ppc-dis.c (ppc_opts): Remove PPC_OPCODE_ALTIVEC2,
+       PPC_OPCODE_VSX3, PPC_OPCODE_HTM and "htm".
        * ppc-opc.c (PPCVEC2): Define as PPC_OPCODE_POWER8|PPC_OPCODE_E6500.
        (PPCVEC3): Define as PPC_OPCODE_POWER9.
        (PPCVSX2): Define as PPC_OPCODE_POWER8.
        (PPCVSX3): Define as PPC_OPCODE_POWER9.
+       (PPCHTM): Define as PPC_OPCODE_POWER8.
 
 2017-04-10  Alan Modra  <amodra@gmail.com>
 
index 64fadc247c499876f024b9a4f570da5461c7b814..bb0bc30203588f0199301ae557bc190b826a0201 100644 (file)
@@ -171,13 +171,13 @@ struct ppc_mopt ppc_opts[] = {
     0 },
   { "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_POWER7 | PPC_OPCODE_POWER8
                | 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_VSX),
+               | PPC_OPCODE_ALTIVEC | PPC_OPCODE_VSX),
     0 },
   { "ppc",     PPC_OPCODE_PPC,
     0 },
@@ -214,13 +214,13 @@ struct ppc_mopt ppc_opts[] = {
     0 },
   { "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_POWER7 | PPC_OPCODE_POWER8
                | 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_VSX),
+               | PPC_OPCODE_ALTIVEC | PPC_OPCODE_VSX),
     0 },
   { "pwrx",    PPC_OPCODE_POWER | PPC_OPCODE_POWER2,
     0 },
@@ -238,8 +238,6 @@ struct ppc_mopt ppc_opts[] = {
     PPC_OPCODE_VLE },
   { "vsx",     PPC_OPCODE_PPC,
     PPC_OPCODE_VSX },
-  { "htm",     PPC_OPCODE_PPC,
-    PPC_OPCODE_HTM },
 };
 
 /* Switch between Booke and VLE dialects for interlinked dumps.  */
index 7294c6d86ad6dbcadf1809283a481229e986c9fa..430104e36dee194c76779fb0ae1550ab87ea16e4 100644 (file)
@@ -3121,7 +3121,7 @@ extract_vleil (unsigned long insn,
 #define E500   PPC_OPCODE_E500
 #define E6500  PPC_OPCODE_E6500
 #define PPCVLE  PPC_OPCODE_VLE
-#define PPCHTM  PPC_OPCODE_HTM
+#define PPCHTM  PPC_OPCODE_POWER8
 #define E200Z4  PPC_OPCODE_E200Z4
 /* The list of embedded processors that use the embedded operand ordering
    for the 3 operand dcbt and dcbtst instructions.  */
This page took 0.033445 seconds and 4 git commands to generate.