mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-02-11 15:55:19 +00:00
Add POWER3 test for PowerPC
Issue 656 talks about running on a G4 Macbook
This commit is contained in:
parent
3681d2fa1f
commit
87565dce75
11
GNUmakefile
11
GNUmakefile
@ -604,6 +604,7 @@ ifeq ($(DETECT_FEATURES),1)
|
||||
POWER6_FLAG = -qarch=pwr6 -qaltivec
|
||||
POWER5_FLAG = -qarch=pwr5 -qaltivec
|
||||
POWER4_FLAG = -qarch=pwr4 -qaltivec
|
||||
POWER3_FLAG = -qarch=pwr3 -qaltivec
|
||||
else
|
||||
POWER9_FLAG = -mcpu=power9 -maltivec
|
||||
POWER8_FLAG = -mcpu=power8 -maltivec
|
||||
@ -611,6 +612,7 @@ ifeq ($(DETECT_FEATURES),1)
|
||||
POWER6_FLAG = -mcpu=power6 -maltivec
|
||||
POWER5_FLAG = -mcpu=power5 -maltivec
|
||||
POWER4_FLAG = -mcpu=power4 -maltivec
|
||||
POWER3_FLAG = -mcpu=power3 -maltivec
|
||||
endif
|
||||
|
||||
# XLC with LLVM front-ends failed to define XLC defines.
|
||||
@ -745,6 +747,15 @@ ifeq ($(DETECT_FEATURES),1)
|
||||
POWER4_FLAG =
|
||||
endif
|
||||
|
||||
TPROG = TestPrograms/test_ppc_altivec.cxx
|
||||
TOPT = $(POWER3_FLAG)
|
||||
HAVE_OPT = $(shell $(CXX) $(CXXFLAGS) $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT) 2>&1 | tr ' ' '\n' | wc -l)
|
||||
ifeq ($(strip $(HAVE_OPT)),0)
|
||||
ALTIVEC_FLAG = $(POWER3_FLAG)
|
||||
else
|
||||
POWER3_FLAG =
|
||||
endif
|
||||
|
||||
#####################################################################
|
||||
# Fixups for algorithms that can drop to a lower ISA, if needed
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user