Initial Granite Rapids D Support
gcc/ChangeLog: * common/config/i386/cpuinfo.h (get_intel_cpu): Handle Granite Rapids D. * common/config/i386/i386-common.cc: (processor_alias_table): Add graniterapids-d. * common/config/i386/i386-cpuinfo.h (enum processor_subtypes): Add INTEL_COREI7_GRANITERAPIDS_D. * config.gcc: Add -march=graniterapids-d. * config/i386/driver-i386.cc (host_detect_local_cpu): Handle graniterapids-d. * config/i386/i386.h: (PTA_GRANITERAPIDS_D): New. * doc/extend.texi: Add graniterapids-d. * doc/invoke.texi: Ditto. gcc/testsuite/ChangeLog: * g++.target/i386/mv16.C: Add graniterapids-d. * gcc.target/i386/funcspec-56.inc: Handle new march.
This commit is contained in:
parent
c158400352
commit
037907c1b7
@ -566,7 +566,6 @@ get_intel_cpu (struct __processor_model *cpu_model,
|
||||
cpu_model->__cpu_type = INTEL_SIERRAFOREST;
|
||||
break;
|
||||
case 0xad:
|
||||
case 0xae:
|
||||
/* Granite Rapids. */
|
||||
cpu = "graniterapids";
|
||||
CHECK___builtin_cpu_is ("corei7");
|
||||
@ -574,6 +573,14 @@ get_intel_cpu (struct __processor_model *cpu_model,
|
||||
cpu_model->__cpu_type = INTEL_COREI7;
|
||||
cpu_model->__cpu_subtype = INTEL_COREI7_GRANITERAPIDS;
|
||||
break;
|
||||
case 0xae:
|
||||
/* Granite Rapids D. */
|
||||
cpu = "graniterapids-d";
|
||||
CHECK___builtin_cpu_is ("corei7");
|
||||
CHECK___builtin_cpu_is ("graniterapids-d");
|
||||
cpu_model->__cpu_type = INTEL_COREI7;
|
||||
cpu_model->__cpu_subtype = INTEL_COREI7_GRANITERAPIDS_D;
|
||||
break;
|
||||
case 0xb6:
|
||||
/* Grand Ridge. */
|
||||
cpu = "grandridge";
|
||||
|
@ -2089,6 +2089,8 @@ const pta processor_alias_table[] =
|
||||
M_CPU_SUBTYPE (INTEL_COREI7_ALDERLAKE), P_PROC_AVX2},
|
||||
{"graniterapids", PROCESSOR_GRANITERAPIDS, CPU_HASWELL, PTA_GRANITERAPIDS,
|
||||
M_CPU_SUBTYPE (INTEL_COREI7_GRANITERAPIDS), P_PROC_AVX512F},
|
||||
{"graniterapids-d", PROCESSOR_GRANITERAPIDS, CPU_HASWELL, PTA_GRANITERAPIDS_D,
|
||||
M_CPU_SUBTYPE (INTEL_COREI7_GRANITERAPIDS_D), P_PROC_AVX512F},
|
||||
{"bonnell", PROCESSOR_BONNELL, CPU_ATOM, PTA_BONNELL,
|
||||
M_CPU_TYPE (INTEL_BONNELL), P_PROC_SSSE3},
|
||||
{"atom", PROCESSOR_BONNELL, CPU_ATOM, PTA_BONNELL,
|
||||
|
@ -98,6 +98,7 @@ enum processor_subtypes
|
||||
ZHAOXIN_FAM7H_LUJIAZUI,
|
||||
AMDFAM19H_ZNVER4,
|
||||
INTEL_COREI7_GRANITERAPIDS,
|
||||
INTEL_COREI7_GRANITERAPIDS_D,
|
||||
CPU_SUBTYPE_MAX
|
||||
};
|
||||
|
||||
|
@ -682,7 +682,7 @@ silvermont knl knm skylake-avx512 cannonlake icelake-client icelake-server \
|
||||
skylake goldmont goldmont-plus tremont cascadelake tigerlake cooperlake \
|
||||
sapphirerapids alderlake rocketlake eden-x2 nano nano-1000 nano-2000 nano-3000 \
|
||||
nano-x2 eden-x4 nano-x4 lujiazui x86-64 x86-64-v2 x86-64-v3 x86-64-v4 \
|
||||
sierraforest graniterapids grandridge native"
|
||||
sierraforest graniterapids graniterapids-d grandridge native"
|
||||
|
||||
# Additional x86 processors supported by --with-cpu=. Each processor
|
||||
# MUST be separated by exactly one space.
|
||||
|
@ -594,6 +594,9 @@ const char *host_detect_local_cpu (int argc, const char **argv)
|
||||
/* Assume Grand Ridge. */
|
||||
if (has_feature (FEATURE_RAOINT))
|
||||
cpu = "grandridge";
|
||||
/* Assume Granite Rapids D. */
|
||||
else if (has_feature (FEATURE_AMX_COMPLEX))
|
||||
cpu = "graniterapids-d";
|
||||
/* Assume Granite Rapids. */
|
||||
else if (has_feature (FEATURE_AMX_FP16))
|
||||
cpu = "graniterapids";
|
||||
|
@ -2361,7 +2361,9 @@ constexpr wide_int_bitmask PTA_ALDERLAKE = PTA_TREMONT | PTA_ADX | PTA_AVX
|
||||
constexpr wide_int_bitmask PTA_SIERRAFOREST = PTA_ALDERLAKE | PTA_AVXIFMA
|
||||
| PTA_AVXVNNIINT8 | PTA_AVXNECONVERT | PTA_CMPCCXADD | PTA_ENQCMD | PTA_UINTR;
|
||||
constexpr wide_int_bitmask PTA_GRANITERAPIDS = PTA_SAPPHIRERAPIDS | PTA_AMX_FP16
|
||||
| PTA_PREFETCHI | PTA_AMX_COMPLEX;
|
||||
| PTA_PREFETCHI;
|
||||
constexpr wide_int_bitmask PTA_GRANITERAPIDS_D = PTA_GRANITERAPIDS
|
||||
| PTA_AMX_COMPLEX;
|
||||
constexpr wide_int_bitmask PTA_GRANDRIDGE = PTA_SIERRAFOREST | PTA_RAOINT;
|
||||
constexpr wide_int_bitmask PTA_KNM = PTA_KNL | PTA_AVX5124VNNIW
|
||||
| PTA_AVX5124FMAPS | PTA_AVX512VPOPCNTDQ;
|
||||
|
@ -21972,6 +21972,9 @@ Intel Core i7 Rocketlake CPU.
|
||||
@item graniterapids
|
||||
Intel Core i7 graniterapids CPU.
|
||||
|
||||
@item graniterapids-d
|
||||
Intel Core i7 graniterapids D CPU.
|
||||
|
||||
@item bonnell
|
||||
Intel Atom Bonnell CPU.
|
||||
|
||||
|
@ -32506,6 +32506,17 @@ MOVDIRI, MOVDIR64B, AVX512VP2INTERSECT, ENQCMD, CLDEMOTE, PTWRITE, WAITPKG,
|
||||
SERIALIZE, TSXLDTRK, UINTR, AMX-BF16, AMX-TILE, AMX-INT8, AVX-VNNI, AVX512-FP16,
|
||||
AVX512BF16, AMX-FP16 and PREFETCHI instruction set support.
|
||||
|
||||
@item graniterapids-d
|
||||
Intel graniterapids D CPU with 64-bit extensions, MOVBE, MMX, SSE, SSE2, SSE3,
|
||||
SSSE3, SSE4.1, SSE4.2, POPCNT, CX16, SAHF, FXSR, AVX, XSAVE, PCLMUL, FSGSBASE,
|
||||
RDRND, F16C, AVX2, BMI, BMI2, LZCNT, FMA, MOVBE, HLE, RDSEED, ADCX, PREFETCHW,
|
||||
AES, CLFLUSHOPT, XSAVEC, XSAVES, SGX, AVX512F, AVX512VL, AVX512BW, AVX512DQ,
|
||||
AVX512CD, PKU, AVX512VBMI, AVX512IFMA, SHA, AVX512VNNI, GFNI, VAES, AVX512VBMI2,
|
||||
VPCLMULQDQ, AVX512BITALG, RDPID, AVX512VPOPCNTDQ, PCONFIG, WBNOINVD, CLWB,
|
||||
MOVDIRI, MOVDIR64B, AVX512VP2INTERSECT, ENQCMD, CLDEMOTE, PTWRITE, WAITPKG,
|
||||
SERIALIZE, TSXLDTRK, UINTR, AMX-BF16, AMX-TILE, AMX-INT8, AVX-VNNI, AVX512FP16,
|
||||
AVX512BF16, AMX-FP16, PREFETCHI and AMX-COMPLEX instruction set support.
|
||||
|
||||
@item k6
|
||||
AMD K6 CPU with MMX instruction set support.
|
||||
|
||||
|
@ -104,6 +104,10 @@ int __attribute__ ((target("arch=grandridge"))) foo () {
|
||||
return 27;
|
||||
}
|
||||
|
||||
int __attribute__ ((target("arch=graniterapids-d"))) foo () {
|
||||
return 28;
|
||||
}
|
||||
|
||||
int main ()
|
||||
{
|
||||
int val = foo ();
|
||||
@ -148,6 +152,8 @@ int main ()
|
||||
assert (val == 26);
|
||||
else if (__builtin_cpu_is ("grandridge"))
|
||||
assert (val == 27);
|
||||
else if (__builtin_cpu_is ("graniterapids-d"))
|
||||
assert (val == 28);
|
||||
else
|
||||
assert (val == 0);
|
||||
|
||||
|
@ -203,6 +203,7 @@ extern void test_arch_sapphirerapids (void) __attribute__((__target__("arch=sapp
|
||||
extern void test_arch_alderlake (void) __attribute__((__target__("arch=alderlake")));
|
||||
extern void test_arch_rocketlake (void) __attribute__((__target__("arch=rocketlake")));
|
||||
extern void test_arch_graniterapids (void) __attribute__((__target__("arch=graniterapids")));
|
||||
extern void test_arch_graniterapids_d (void) __attribute__((__target__("arch=graniterapids-d")));
|
||||
extern void test_arch_lujiazui (void) __attribute__((__target__("arch=lujiazui")));
|
||||
extern void test_arch_k8 (void) __attribute__((__target__("arch=k8")));
|
||||
extern void test_arch_k8_sse3 (void) __attribute__((__target__("arch=k8-sse3")));
|
||||
|
Loading…
x
Reference in New Issue
Block a user