1 /* Get CPU type and Features for x86 processors.
2 Copyright (C) 2012-2016 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. */
53 enum processor_subtypes
55 INTEL_COREI7_NEHALEM
= 1,
56 INTEL_COREI7_WESTMERE
,
57 INTEL_COREI7_SANDYBRIDGE
,
66 INTEL_COREI7_IVYBRIDGE
,
68 INTEL_COREI7_BROADWELL
,
70 INTEL_COREI7_SKYLAKE_AVX512
,
74 /* ISA Features supported. New features have to be inserted at the end. */
76 enum processor_features
106 FEATURE_AVX5124VNNIW
,
110 extern struct __processor_model
112 unsigned int __cpu_vendor
;
113 unsigned int __cpu_type
;
114 unsigned int __cpu_subtype
;
115 unsigned int __cpu_features
[1];