Browse Source

Merge pull request #4371 from barracuda156/970

cc.cmake: add optflags for G5 and G4 kernels
tags/v0.3.26
Martin Kroeker GitHub 1 year ago
parent
commit
302ca7edc7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      cmake/cc.cmake

+ 12
- 0
cmake/cc.cmake View File

@@ -282,6 +282,18 @@ if (${CORE} STREQUAL POWER8)
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 (HAVE_AVX2)
set (CCOMMON_OPT "${CCOMMON_OPT} -mavx2")


Loading…
Cancel
Save