Work around IDAMAX/IZAMAX bugs on POWER8BE with ELFv2 FreeBSDtags/v0.3.10^2
| @@ -1349,6 +1349,7 @@ export ARCH | |||||
| export CORE | export CORE | ||||
| export LIBCORE | export LIBCORE | ||||
| export __BYTE_ORDER__ | export __BYTE_ORDER__ | ||||
| export ELF_VERSION | |||||
| export PGCPATH | export PGCPATH | ||||
| export CONFIG | export CONFIG | ||||
| export CC | export CC | ||||
| @@ -1362,10 +1362,12 @@ int main(int argc, char *argv[]){ | |||||
| #if defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ | #if defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ | ||||
| printf("__BYTE_ORDER__=__ORDER_BIG_ENDIAN__\n"); | printf("__BYTE_ORDER__=__ORDER_BIG_ENDIAN__\n"); | ||||
| #endif | |||||
| #if defined(__BIG_ENDIAN__) && __BIG_ENDIAN__ > 0 | |||||
| #elif defined(__BIG_ENDIAN__) && __BIG_ENDIAN__ > 0 | |||||
| printf("__BYTE_ORDER__=__ORDER_BIG_ENDIAN__\n"); | printf("__BYTE_ORDER__=__ORDER_BIG_ENDIAN__\n"); | ||||
| #endif | #endif | ||||
| #if defined(_CALL_ELF) && (_CALL_ELF == 2) | |||||
| printf("ELF_VERSION=2\n"); | |||||
| #endif | |||||
| #ifdef MAKE_NB_JOBS | #ifdef MAKE_NB_JOBS | ||||
| #if MAKE_NB_JOBS > 0 | #if MAKE_NB_JOBS > 0 | ||||
| @@ -232,3 +232,11 @@ QCABS_KERNEL = ../generic/cabs.c | |||||
| #Dump kernel | #Dump kernel | ||||
| CGEMM3MKERNEL = ../generic/zgemm3mkernel_dump.c | CGEMM3MKERNEL = ../generic/zgemm3mkernel_dump.c | ||||
| ZGEMM3MKERNEL = ../generic/zgemm3mkernel_dump.c | ZGEMM3MKERNEL = ../generic/zgemm3mkernel_dump.c | ||||
| ifeq ($(__BYTE_ORDER__)$(ELF_VERSION),__ORDER_BIG_ENDIAN__2) | |||||
| IDAMAXKERNEL = ../arm/iamax.c | |||||
| IDAMINKERNEL = ../arm/iamin.c | |||||
| IZAMAXKERNEL = ../arm/izamax.c | |||||
| IZAMINKERNEL = ../arm/izamin.c | |||||
| endif | |||||