Add POWER3 test for PowerPC
Issue 656 talks about running on a G4 Macbookpull/748/head
parent
3681d2fa1f
commit
87565dce75
11
GNUmakefile
11
GNUmakefile
|
|
@ -604,6 +604,7 @@ ifeq ($(DETECT_FEATURES),1)
|
||||||
POWER6_FLAG = -qarch=pwr6 -qaltivec
|
POWER6_FLAG = -qarch=pwr6 -qaltivec
|
||||||
POWER5_FLAG = -qarch=pwr5 -qaltivec
|
POWER5_FLAG = -qarch=pwr5 -qaltivec
|
||||||
POWER4_FLAG = -qarch=pwr4 -qaltivec
|
POWER4_FLAG = -qarch=pwr4 -qaltivec
|
||||||
|
POWER3_FLAG = -qarch=pwr3 -qaltivec
|
||||||
else
|
else
|
||||||
POWER9_FLAG = -mcpu=power9 -maltivec
|
POWER9_FLAG = -mcpu=power9 -maltivec
|
||||||
POWER8_FLAG = -mcpu=power8 -maltivec
|
POWER8_FLAG = -mcpu=power8 -maltivec
|
||||||
|
|
@ -611,6 +612,7 @@ ifeq ($(DETECT_FEATURES),1)
|
||||||
POWER6_FLAG = -mcpu=power6 -maltivec
|
POWER6_FLAG = -mcpu=power6 -maltivec
|
||||||
POWER5_FLAG = -mcpu=power5 -maltivec
|
POWER5_FLAG = -mcpu=power5 -maltivec
|
||||||
POWER4_FLAG = -mcpu=power4 -maltivec
|
POWER4_FLAG = -mcpu=power4 -maltivec
|
||||||
|
POWER3_FLAG = -mcpu=power3 -maltivec
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# XLC with LLVM front-ends failed to define XLC defines.
|
# XLC with LLVM front-ends failed to define XLC defines.
|
||||||
|
|
@ -745,6 +747,15 @@ ifeq ($(DETECT_FEATURES),1)
|
||||||
POWER4_FLAG =
|
POWER4_FLAG =
|
||||||
endif
|
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
|
# Fixups for algorithms that can drop to a lower ISA, if needed
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue