Skip to content

Commit

Permalink
core-target-clones.h: add Lunarlake target clones
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
  • Loading branch information
ColinIanKing committed Oct 21, 2024
1 parent 7ab8bdb commit 03980c3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile.config
Original file line number Diff line number Diff line change
Expand Up @@ -1281,6 +1281,7 @@ cpufeatures: \
TARGET_CLONES_COOPERLAKE \
TARGET_CLONES_GRANITERAPIDS \
TARGET_CLONES_MMX \
TARGET_CLONES_LUNARLAKE \
TARGET_CLONES_PANTHERLAKE \
TARGET_CLONES_POWER9 \
TARGET_CLONES_POWER10 \
Expand Down Expand Up @@ -1660,6 +1661,9 @@ TARGET_CLONES_GRANITERAPIDS:
TARGET_CLONES_ARROWLAKE:
$(call check,test-target-clones,HAVE_TARGET_CLONES_ARROWLAKE,target_clones arch=arrowlake attribute (x86),,,'"default$(comma)arch=arrowlake"')

TARGET_CLONES_LUNARLAKE:
$(call check,test-target-clones,HAVE_TARGET_CLONES_LUNARLAKE,target_clones arch=lunarlake attribute (x86),,,'"default$(comma)arch=lunarlake"')

TARGET_CLONES_PANTHERLAKE:
$(call check,test-target-clones,HAVE_TARGET_CLONES_PANTHERLAKE,target_clones arch=pantherlake attribute (x86),,,'"default$(comma)arch=pantherlake"')

Expand Down
9 changes: 9 additions & 0 deletions core-target-clones.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,14 @@
#define TARGET_CLONE_ARROWLAKE
#endif

#if defined(HAVE_TARGET_CLONES_LUNARLAKE) && \
defined(HAVE_COMPILER_GCC_OR_MUSL)
#define TARGET_CLONE_LUNARLAKE "arch=lunarlake",
#define TARGET_CLONE_USE
#else
#define TARGET_CLONE_LUNARLAKE
#endif

#define TARGET_CLONES_ALL \
TARGET_CLONE_AVX \
TARGET_CLONE_AVX2 \
Expand All @@ -176,6 +184,7 @@
TARGET_CLONE_ROCKETLAKE \
TARGET_CLONE_GRANITERAPIDS \
TARGET_CLONE_ARROWLAKE \
TARGET_CLONE_LUNARLAKE \
TARGET_CLONE_PANTHERLAKE \
"default"

Expand Down

0 comments on commit 03980c3

Please sign in to comment.