]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386.c (fold_builtin_cpu): Add M_AMDFAM17H to processor_model and "amdfam17h" to...
authorUros Bizjak <ubizjak@gmail.com>
Tue, 19 Sep 2017 16:21:03 +0000 (18:21 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Tue, 19 Sep 2017 16:21:03 +0000 (18:21 +0200)
* config/i386/i386.c (fold_builtin_cpu): Add M_AMDFAM17H
to processor_model and "amdfam17h" to arch_names_table.
* doc/extend.texi (__builtin_cpu_is): Document amdfam17h CPU name.

From-SVN: r252980

gcc/ChangeLog
gcc/config/i386/i386.c
gcc/doc/extend.texi

index 934784a39ca7771a4a0176a1824948952b167c33..f3e9e35560a1ea3aa7511f3105eb69bfc44243dd 100644 (file)
@@ -1,3 +1,9 @@
+2017-09-19  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/i386.c (fold_builtin_cpu): Add M_AMDFAM17H
+       to processor_model and "amdfam17h" to arch_names_table.
+       * doc/extend.texi (__builtin_cpu_is): Document amdfam17h CPU name.
+
 2017-09-19  Martin Liska  <mliska@suse.cz>
 
        PR c++/81355
@@ -13,7 +19,7 @@
        Report warning for an empty string argument of target attribute.
 
 2017-09-18  Richard Biener  <rguenther@suse.de>
+
        Backport from mainline
        2017-08-28  Richard Biener  <rguenther@suse.de>
 
index b62932ac2de431b52e6a0ef0e151d6409775b7aa..627091d19a64f874ba37fd9570684660410515cb 100644 (file)
@@ -37414,6 +37414,7 @@ fold_builtin_cpu (tree fndecl, tree *args)
     M_INTEL_KNL,
     M_AMD_BTVER1,
     M_AMD_BTVER2,    
+    M_AMDFAM17H,
     M_CPU_SUBTYPE_START,
     M_INTEL_COREI7_NEHALEM,
     M_INTEL_COREI7_WESTMERE,
@@ -37468,6 +37469,7 @@ fold_builtin_cpu (tree fndecl, tree *args)
       {"bdver3", M_AMDFAM15H_BDVER3},
       {"bdver4", M_AMDFAM15H_BDVER4},
       {"btver2", M_AMD_BTVER2},
+      {"amdfam17h", M_AMDFAM17H},
       {"znver1", M_AMDFAM17H_ZNVER1},
     };
 
index aa567f9c0f249be6e910330081dac4e8a3567d4a..8cc4f7e1f6a6811faab0be28eba7fc9b58455f43 100644 (file)
@@ -17771,8 +17771,11 @@ AMD Family 15h Bulldozer version 4.
 @item btver2
 AMD Family 16h CPU.
 
-@item znver1
+@item amdfam17h
 AMD Family 17h CPU.
+
+@item znver1
+AMD Family 17h Zen version 1.
 @end table
 
 Here is an example: