Skip to content

Commit

Permalink
core-target-clones: add more power9,10,11 target clone build time con…
Browse files Browse the repository at this point in the history
…straints

Adding a gcc check for the builtins for power9,10,11 makes the target clone
built time constraints more conservative.

Fixes: #451

Signed-off-by: Colin Ian King <[email protected]>
  • Loading branch information
ColinIanKing committed Nov 5, 2024
1 parent 4e832af commit a679a1f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions core-target-clones.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,21 +198,24 @@
#if defined(STRESS_ARCH_PPC64) && \
defined(HAVE_TARGET_CLONES)

#if defined(HAVE_TARGET_CLONES_POWER9)
#if defined(HAVE_TARGET_CLONES_POWER9) && \
defined(HAVE_BUILTIN_CPU_IS_POWER10)
#define TARGET_CLONE_POWER9 "cpu=power9",
#define TARGET_CLONE_USE
#else
#define TARGET_CLONE_POWER9
#endif

#if defined(HAVE_TARGET_CLONES_POWER10)
#if defined(HAVE_TARGET_CLONES_POWER10) && \
defined(HAVE_BUILTIN_CPU_IS_POWER10)
#define TARGET_CLONE_POWER10 "cpu=power10",
#define TARGET_CLONE_USE
#else
#define TARGET_CLONE_POWER10
#endif

#if defined(HAVE_TARGET_CLONES_POWER11)
#if defined(HAVE_TARGET_CLONES_POWER11) && \
defined(HAVE_BUILTIN_CPU_IS_POWER11)
#define TARGET_CLONE_POWER11 "cpu=power11",
#define TARGET_CLONE_USE
#else
Expand Down

0 comments on commit a679a1f

Please sign in to comment.