cc.cmake: add optflags for G5 and G4 kernels
This commit is contained in:
parent
55a0718f72
commit
a8d3619f65
|
@ -282,6 +282,18 @@ if (${CORE} STREQUAL POWER8)
|
||||||
endif ()
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
if (${CORE} STREQUAL PPC970)
|
||||||
|
if (NOT DYNAMIC_ARCH)
|
||||||
|
set (CCOMMON_OPT "${CCOMMON_OPT} -mcpu=970 -mtune=970 -maltivec -fno-fast-math")
|
||||||
|
endif ()
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
if (${CORE} STREQUAL PPCG4)
|
||||||
|
if (NOT DYNAMIC_ARCH)
|
||||||
|
set (CCOMMON_OPT "${CCOMMON_OPT} -mcpu=G4 -mtune=G4 -maltivec -fno-fast-math")
|
||||||
|
endif ()
|
||||||
|
endif ()
|
||||||
|
|
||||||
if (NOT DYNAMIC_ARCH)
|
if (NOT DYNAMIC_ARCH)
|
||||||
if (HAVE_AVX2)
|
if (HAVE_AVX2)
|
||||||
set (CCOMMON_OPT "${CCOMMON_OPT} -mavx2")
|
set (CCOMMON_OPT "${CCOMMON_OPT} -mavx2")
|
||||||
|
|
Loading…
Reference in New Issue