1 /* Get CPU type and Features for x86 processors.
2 Copyright (C) 2012-2018 Free Software Foundation, Inc.
3 Contributed by Sriraman Tallam (tmsriram@google.com)
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 3, or (at your option) any later
12 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 Under Section 7 of GPL version 3, you are granted additional
18 permissions described in the GCC Runtime Library Exception, version
19 3.1, as published by the Free Software Foundation.
21 You should have received a copy of the GNU General Public License and
22 a copy of the GCC Runtime Library Exception along with this program;
23 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
24 <http://www.gnu.org/licenses/>. */
26 /* Processor Vendor and Models. */
36 /* Any new types or subtypes have to be inserted at the end. */
57 enum processor_subtypes
59 INTEL_COREI7_NEHALEM
= 1,
60 INTEL_COREI7_WESTMERE
,
61 INTEL_COREI7_SANDYBRIDGE
,
70 INTEL_COREI7_IVYBRIDGE
,
72 INTEL_COREI7_BROADWELL
,
74 INTEL_COREI7_SKYLAKE_AVX512
,
75 INTEL_COREI7_CANNONLAKE
,
76 INTEL_COREI7_ICELAKE_CLIENT
,
77 INTEL_COREI7_ICELAKE_SERVER
,
82 /* ISA Features supported. New features have to be inserted at the end. */
84 enum processor_features
114 FEATURE_AVX5124VNNIW
,
115 FEATURE_AVX5124FMAPS
,
116 FEATURE_AVX512VPOPCNTDQ
,
124 extern struct __processor_model
126 unsigned int __cpu_vendor
;
127 unsigned int __cpu_type
;
128 unsigned int __cpu_subtype
;
129 unsigned int __cpu_features
[1];
131 extern unsigned int __cpu_features2
;