Index: head/math/openblas/files/patch-common__arm.h =================================================================== --- head/math/openblas/files/patch-common__arm.h (revision 465862) +++ head/math/openblas/files/patch-common__arm.h (revision 465863) @@ -1,16 +1,20 @@ --- common_arm.h.orig 2016-09-01 03:58:42 UTC +++ common_arm.h -@@ -93,6 +93,13 @@ static inline int blas_quickdivide(blasi +@@ -93,6 +93,17 @@ static inline int blas_quickdivide(blasint x, blasint #endif +/* Translate pre-UAL asm to UAL equivalents */ +#if defined(__clang__) +#define fnmacs vmls.f32 +#define fnmacd vmls.f64 +#define fnmuls vnmul.f32 +#define fnmuld vnmul.f64 ++#define fldmias vldmia ++#define fstmias vstmia ++#define fldmiad vldmia ++#define fstmiad vstmia +#endif #ifndef F_INTERFACE #define REALNAME ASMNAME Index: head/math/openblas/files/patch-cpuid__arm.c =================================================================== --- head/math/openblas/files/patch-cpuid__arm.c (revision 465862) +++ head/math/openblas/files/patch-cpuid__arm.c (revision 465863) @@ -1,12 +1,16 @@ --- cpuid_arm.c.orig 2016-09-01 03:58:42 UTC +++ cpuid_arm.c -@@ -181,7 +181,8 @@ int detect(void) +@@ -181,7 +181,12 @@ int detect(void) } } - +#else ++#if (__ARM_ARCH == 7) ++ return CPU_ARMV7; ++#else + return CPU_ARMV6; ++#endif #endif return CPU_UNKNOWN;