i386.c (fold_builtin_cpu): Add M_AMDFAM17H to processor_model and "amdfam17h" to...
authorUros Bizjak <ubizjak@gmail.com>
Mon, 18 Sep 2017 18:57:21 +0000 (20:57 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Mon, 18 Sep 2017 18:57:21 +0000 (20:57 +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: r252948

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

index 283c15937ff419c33a51fdfabbaee4a0654cd44b..32a286241f6a27a1243c080d93ad62bef2ccdbd0 100644 (file)
@@ -1,3 +1,9 @@
+2017-09-18  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-18  Jakub Jelinek  <jakub@redhat.com>
 
        PR c/82234
index 7103d11937478dcab82ec3c6eddff92617f7a05c..c80c0de67942e8120f63babb57bb8c322d842783 100644 (file)
@@ -34404,6 +34404,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,
@@ -34458,6 +34459,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 04c497a1e2f140cc51d69cd724e2ac66446c8960..a66a7952033fe97a22ccb3345de41ac6e1c9c4a8 100644 (file)
@@ -19914,8 +19914,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: