@@ -247,29 +247,6 @@ php_check_builtin(__builtin_usub_overflow PHP_HAVE_BUILTIN_USUB_OVERFLOW)
247247# Check AVX-512 extensions.
248248include (PHP/CheckAVX512)
249249
250- # Check for asm goto.
251- message (CHECK_START "Checking for asm goto support" )
252- cmake_push_check_state(RESET)
253- set (CMAKE_REQUIRED_QUIET TRUE )
254- check_source_compiles(C [[
255- int main(void)
256- {
257- #if defined(__x86_64__) || defined(__i386__)
258- __asm__ goto("jmp %l0\n" :::: end);
259- #elif defined(__aarch64__)
260- __asm__ goto("b %l0\n" :::: end);
261- #endif
262- end:
263- return 0;
264- }
265- ]] HAVE_ASM_GOTO)
266- cmake_pop_check_state()
267- if (HAVE_ASM_GOTO)
268- message (CHECK_PASS "yes" )
269- else ()
270- message (CHECK_FAIL "no" )
271- endif ()
272-
273250################################################################################
274251# Check functions.
275252################################################################################
@@ -469,35 +446,6 @@ endif()
469446# Check how flush should be called.
470447include (PHP/CheckFlushIo)
471448
472- # Check for aarch64 CRC32 API.
473- message (CHECK_START "Checking for aarch64 CRC32 API availability" )
474- cmake_push_check_state(RESET)
475- set (CMAKE_REQUIRED_QUIET TRUE )
476- check_source_compiles(C [[
477- #include <arm_acle.h>
478- # if defined(__GNUC__)
479- # if!defined(__clang__)
480- # pragma GCC push_options
481- # pragma GCC target ("+nothing+crc")
482- # elif defined(__APPLE__)
483- # pragma clang attribute push(__attribute__((target("crc"))), apply_to=function)
484- # else
485- # pragma clang attribute push(__attribute__((target("+nothing+crc"))), apply_to=function)
486- # endif
487- # endif
488- int main(void)
489- {
490- __crc32d(0, 0);
491- return 0;
492- }
493- ]] HAVE_AARCH64_CRC32)
494- cmake_pop_check_state()
495- if (HAVE_AARCH64_CRC32)
496- message (CHECK_PASS "yes" )
497- else ()
498- message (CHECK_FAIL "no" )
499- endif ()
500-
501449if (HAVE_ALLOCA_H)
502450 # Most *.nix systems.
503451 check_symbol_exists(alloca "alloca.h" HAVE_ALLOCA)
0 commit comments