Skip to content

Commit 2c0d3ab

Browse files
committed
Donot assert SSE/AVX resolvers at windows arm64
1 parent bc8b7f6 commit 2c0d3ab

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Zend/zend_portability.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ extern "C++" {
517517
#ifdef __SSSE3__
518518
/* Instructions compiled directly. */
519519
# define ZEND_INTRIN_SSSE3_NATIVE 1
520-
#elif (defined(HAVE_FUNC_ATTRIBUTE_TARGET) && defined(PHP_HAVE_SSSE3)) || defined(ZEND_WIN32)
520+
#elif (defined(HAVE_FUNC_ATTRIBUTE_TARGET) && defined(PHP_HAVE_SSSE3)) || (defined(ZEND_WIN32) && (!defined(_M_ARM64)))
521521
/* Function resolved by ifunc or MINIT. */
522522
# define ZEND_INTRIN_SSSE3_RESOLVER 1
523523
#endif
@@ -542,7 +542,7 @@ extern "C++" {
542542
#ifdef __SSE4_2__
543543
/* Instructions compiled directly. */
544544
# define ZEND_INTRIN_SSE4_2_NATIVE 1
545-
#elif (defined(HAVE_FUNC_ATTRIBUTE_TARGET) && defined(PHP_HAVE_SSE4_2)) || defined(ZEND_WIN32)
545+
#elif (defined(HAVE_FUNC_ATTRIBUTE_TARGET) && defined(PHP_HAVE_SSE4_2)) || (defined(ZEND_WIN32) && (!defined(_M_ARM64)))
546546
/* Function resolved by ifunc or MINIT. */
547547
# define ZEND_INTRIN_SSE4_2_RESOLVER 1
548548
#endif
@@ -567,7 +567,7 @@ extern "C++" {
567567
#ifdef __PCLMUL__
568568
/* Instructions compiled directly. */
569569
# define ZEND_INTRIN_PCLMUL_NATIVE 1
570-
#elif (defined(HAVE_FUNC_ATTRIBUTE_TARGET) && defined(PHP_HAVE_PCLMUL)) || defined(ZEND_WIN32)
570+
#elif (defined(HAVE_FUNC_ATTRIBUTE_TARGET) && defined(PHP_HAVE_PCLMUL)) || (defined(ZEND_WIN32) && (!defined(_M_ARM64)))
571571
/* Function resolved by ifunc or MINIT. */
572572
# define ZEND_INTRIN_PCLMUL_RESOLVER 1
573573
#endif
@@ -593,7 +593,7 @@ extern "C++" {
593593
#if defined(ZEND_INTRIN_SSE4_2_NATIVE) && defined(ZEND_INTRIN_PCLMUL_NATIVE)
594594
/* Instructions compiled directly. */
595595
# define ZEND_INTRIN_SSE4_2_PCLMUL_NATIVE 1
596-
#elif (defined(HAVE_FUNC_ATTRIBUTE_TARGET) && defined(PHP_HAVE_SSE4_2) && defined(PHP_HAVE_PCLMUL)) || defined(ZEND_WIN32)
596+
#elif (defined(HAVE_FUNC_ATTRIBUTE_TARGET) && defined(PHP_HAVE_SSE4_2) && defined(PHP_HAVE_PCLMUL)) || (defined(ZEND_WIN32) && (!defined(_M_ARM64)))
597597
/* Function resolved by ifunc or MINIT. */
598598
# define ZEND_INTRIN_SSE4_2_PCLMUL_RESOLVER 1
599599
#endif
@@ -618,7 +618,7 @@ extern "C++" {
618618

619619
#ifdef __AVX2__
620620
# define ZEND_INTRIN_AVX2_NATIVE 1
621-
#elif (defined(HAVE_FUNC_ATTRIBUTE_TARGET) && defined(PHP_HAVE_AVX2)) || defined(ZEND_WIN32)
621+
#elif (defined(HAVE_FUNC_ATTRIBUTE_TARGET) && defined(PHP_HAVE_AVX2)) || (defined(ZEND_WIN32) && (!defined(_M_ARM64)))
622622
# define ZEND_INTRIN_AVX2_RESOLVER 1
623623
#endif
624624

0 commit comments

Comments
 (0)