From cac97f041d6462fd20852e9502984dc9b5131330 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 12 Nov 2018 15:43:01 -0500 Subject: [PATCH] Rename PPC feature tests to test_ppc_xxx.cxx (PR #737) --- GNUmakefile | 14 +++++++------- .../{test_altivec.cxx => test_ppc_altivec.cxx} | 0 .../{test_power7.cxx => test_ppc_power7.cxx} | 0 .../{test_power8.cxx => test_ppc_power8.cxx} | 0 4 files changed, 7 insertions(+), 7 deletions(-) rename TestPrograms/{test_altivec.cxx => test_ppc_altivec.cxx} (100%) rename TestPrograms/{test_power7.cxx => test_ppc_power7.cxx} (100%) rename TestPrograms/{test_power8.cxx => test_ppc_power8.cxx} (100%) diff --git a/GNUmakefile b/GNUmakefile index 4a1485b6..65babe10 100755 --- a/GNUmakefile +++ b/GNUmakefile @@ -604,7 +604,7 @@ ifeq ($(DETECT_FEATURES),1) # get XLC defines. The POWER8 really jambs us up for ppc_simd.cpp # which needs ALTIVEC/POWER4. We have similar problems with POWER7. ifeq ($(XLC_COMPILER)$(findstring -qxlcompatmacros,$(CXXFLAGS)),1) - TPROG = TestPrograms/test_altivec.cxx + TPROG = TestPrograms/test_ppc_altivec.cxx TOPT = -qxlcompatmacros HAVE_OPT = $(shell $(CXX) $(CXXFLAGS) $(ZOPT) $(TOPT) $(TPROG) 2>&1 | $(GREP) -i -c -E $(BAD_RESULT)) ifeq ($(HAVE_OPT),0) @@ -613,7 +613,7 @@ ifeq ($(DETECT_FEATURES),1) endif # GCC and some compatibles - TPROG = TestPrograms/test_power8.cxx + TPROG = TestPrograms/test_ppc_power8.cxx TOPT = -mcpu=power8 -maltivec HAVE_OPT = $(shell $(CXX) $(CXXFLAGS) $(ZOPT) $(TOPT) $(TPROG) 2>&1 | $(GREP) -i -c -E $(BAD_RESULT)) ifeq ($(HAVE_OPT),0) @@ -632,7 +632,7 @@ ifeq ($(DETECT_FEATURES),1) endif # GCC and some compatibles - TPROG = TestPrograms/test_power7.cxx + TPROG = TestPrograms/test_ppc_power7.cxx TOPT = -mcpu=power7 -maltivec HAVE_OPT = $(shell $(CXX) $(CXXFLAGS) $(ZOPT) $(TOPT) $(TPROG) 2>&1 | $(GREP) -i -c -E $(BAD_RESULT)) ifeq ($(HAVE_OPT),0) @@ -647,7 +647,7 @@ ifeq ($(DETECT_FEATURES),1) endif # GCC and some compatibles - TPROG = TestPrograms/test_altivec.cxx + TPROG = TestPrograms/test_ppc_altivec.cxx TOPT = -mcpu=power4 -maltivec HAVE_OPT = $(shell $(CXX) $(CXXFLAGS) $(ZOPT) $(TOPT) $(TPROG) 2>&1 | $(GREP) -i -c -E $(BAD_RESULT)) ifeq ($(HAVE_OPT),0) @@ -667,7 +667,7 @@ ifeq ($(DETECT_FEATURES),1) endif # IBM XL C/C++ - TPROG = TestPrograms/test_power8.cxx + TPROG = TestPrograms/test_ppc_power8.cxx TOPT = -qarch=pwr8 -qaltivec HAVE_OPT = $(shell $(CXX) $(CXXFLAGS) $(ZOPT) $(TOPT) $(TPROG) 2>&1 | $(GREP) -i -c -E $(BAD_RESULT)) ifeq ($(HAVE_OPT),0) @@ -686,7 +686,7 @@ ifeq ($(DETECT_FEATURES),1) endif # IBM XL C/C++ - TPROG = TestPrograms/test_power7.cxx + TPROG = TestPrograms/test_ppc_power7.cxx TOPT = -qarch=pwr7 -qaltivec HAVE_OPT = $(shell $(CXX) $(CXXFLAGS) $(ZOPT) $(TOPT) $(TPROG) 2>&1 | $(GREP) -i -c -E $(BAD_RESULT)) ifeq ($(HAVE_OPT),0) @@ -701,7 +701,7 @@ ifeq ($(DETECT_FEATURES),1) endif # IBM XL C/C++ - TPROG = TestPrograms/test_altivec.cxx + TPROG = TestPrograms/test_ppc_altivec.cxx TOPT = -qarch=pwr4 -qaltivec HAVE_OPT = $(shell $(CXX) $(CXXFLAGS) $(ZOPT) $(TOPT) $(TPROG) 2>&1 | $(GREP) -i -c -E $(BAD_RESULT)) ifeq ($(HAVE_OPT),0) diff --git a/TestPrograms/test_altivec.cxx b/TestPrograms/test_ppc_altivec.cxx similarity index 100% rename from TestPrograms/test_altivec.cxx rename to TestPrograms/test_ppc_altivec.cxx diff --git a/TestPrograms/test_power7.cxx b/TestPrograms/test_ppc_power7.cxx similarity index 100% rename from TestPrograms/test_power7.cxx rename to TestPrograms/test_ppc_power7.cxx diff --git a/TestPrograms/test_power8.cxx b/TestPrograms/test_ppc_power8.cxx similarity index 100% rename from TestPrograms/test_power8.cxx rename to TestPrograms/test_ppc_power8.cxx