Skip to content

Commit 302ca7e

Browse files
authored
Merge pull request #4371 from barracuda156/970
cc.cmake: add optflags for G5 and G4 kernels
2 parents 55a0718 + a8d3619 commit 302ca7e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cmake/cc.cmake

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,18 @@ if (${CORE} STREQUAL POWER8)
282282
endif ()
283283
endif ()
284284

285+
if (${CORE} STREQUAL PPC970)
286+
if (NOT DYNAMIC_ARCH)
287+
set (CCOMMON_OPT "${CCOMMON_OPT} -mcpu=970 -mtune=970 -maltivec -fno-fast-math")
288+
endif ()
289+
endif ()
290+
291+
if (${CORE} STREQUAL PPCG4)
292+
if (NOT DYNAMIC_ARCH)
293+
set (CCOMMON_OPT "${CCOMMON_OPT} -mcpu=G4 -mtune=G4 -maltivec -fno-fast-math")
294+
endif ()
295+
endif ()
296+
285297
if (NOT DYNAMIC_ARCH)
286298
if (HAVE_AVX2)
287299
set (CCOMMON_OPT "${CCOMMON_OPT} -mavx2")

0 commit comments

Comments
 (0)