diff options
author | Haochen Jiang <haochen.jiang@intel.com> | 2023-10-18 14:40:45 +0800 |
---|---|---|
committer | Haochen Jiang <haochen.jiang@intel.com> | 2023-10-18 14:40:59 +0800 |
commit | f019251ac9be017aaf3c58f87f43d88b974d21cf (patch) | |
tree | 5e19dba3f40deedd7f8b8102462997a93771ab37 /gcc/testsuite | |
parent | 2aa97c0da4a62d3cf41942e8803d049dee4fcf13 (diff) | |
download | gcc-f019251ac9be017aaf3c58f87f43d88b974d21cf.zip gcc-f019251ac9be017aaf3c58f87f43d88b974d21cf.tar.gz gcc-f019251ac9be017aaf3c58f87f43d88b974d21cf.tar.bz2 |
Initial Panther Lake Support
gcc/ChangeLog:
* common/config/i386/cpuinfo.h (get_intel_cpu): Add Panther
Lake.
* common/config/i386/i386-common.cc (processor_name):
Ditto.
(processor_alias_table): Ditto.
* common/config/i386/i386-cpuinfo.h (enum processor_types):
Add INTEL_PANTHERLAKE.
* config.gcc: Add -march=pantherlake.
* config/i386/driver-i386.cc (host_detect_local_cpu): Refactor
the if clause. Handle pantherlake.
* config/i386/i386-c.cc (ix86_target_macros_internal):
Handle pantherlake.
* config/i386/i386-options.cc (processor_cost_table): Ditto.
(m_PANTHERLAKE): New.
(m_CORE_HYBRID): Add pantherlake.
* config/i386/i386.h (enum processor_type): Ditto.
* doc/extend.texi: Ditto.
* doc/invoke.texi: Ditto.
gcc/testsuite/ChangeLog:
* g++.target/i386/mv16.C: Ditto.
* gcc.target/i386/funcspec-56.inc: Handle new march.
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/g++.target/i386/mv16.C | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/funcspec-56.inc | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.target/i386/mv16.C b/gcc/testsuite/g++.target/i386/mv16.C index d29002b..ef47831 100644 --- a/gcc/testsuite/g++.target/i386/mv16.C +++ b/gcc/testsuite/g++.target/i386/mv16.C @@ -120,6 +120,10 @@ int __attribute__ ((target("arch=clearwaterforest"))) foo () { return 31; } +int __attribute__ ((target("arch=pantherlake"))) foo () { + return 32; +} + int main () { int val = foo (); @@ -172,6 +176,8 @@ int main () assert (val == 30); else if (__builtin_cpu_is ("clearwaterforest")) assert (val == 31); + else if (__builtin_cpu_is ("pantherlake")) + assert (val == 32); else assert (val == 0); diff --git a/gcc/testsuite/gcc.target/i386/funcspec-56.inc b/gcc/testsuite/gcc.target/i386/funcspec-56.inc index c1d9324..c6307fb 100644 --- a/gcc/testsuite/gcc.target/i386/funcspec-56.inc +++ b/gcc/testsuite/gcc.target/i386/funcspec-56.inc @@ -217,6 +217,7 @@ extern void test_arch_graniterapids_d (void) __attribute__((__target__("arch=gra extern void test_arch_arrowlake (void) __attribute__((__target__("arch=arrowlake"))); extern void test_arch_arrowlake_s (void) __attribute__((__target__("arch=arrowlake-s"))); extern void test_arch_clearwaterforest (void) __attribute__((__target__("arch=clearwaterforest"))); +extern void test_arch_pantherlake (void) __attribute__((__target__("arch=pantherlake"))); 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"))); |