@@ -251,29 +251,6 @@ include(PHP/CheckInline)
251251# Check AVX-512 extensions.
252252include (PHP/CheckAVX512)
253253
254- # Check for asm goto.
255- message (CHECK_START "Checking for asm goto support" )
256- cmake_push_check_state(RESET)
257- set (CMAKE_REQUIRED_QUIET TRUE )
258- check_source_compiles(C [[
259- int main(void)
260- {
261- #if defined(__x86_64__) || defined(__i386__)
262- __asm__ goto("jmp %l0\n" :::: end);
263- #elif defined(__aarch64__)
264- __asm__ goto("b %l0\n" :::: end);
265- #endif
266- end:
267- return 0;
268- }
269- ]] HAVE_ASM_GOTO)
270- cmake_pop_check_state()
271- if (HAVE_ASM_GOTO)
272- message (CHECK_PASS "yes" )
273- else ()
274- message (CHECK_FAIL "no" )
275- endif ()
276-
277254################################################################################
278255# Check functions.
279256################################################################################
@@ -473,35 +450,6 @@ endif()
473450# Check how flush should be called.
474451include (PHP/CheckFlushIo)
475452
476- # Check for aarch64 CRC32 API.
477- message (CHECK_START "Checking for aarch64 CRC32 API availability" )
478- cmake_push_check_state(RESET)
479- set (CMAKE_REQUIRED_QUIET TRUE )
480- check_source_compiles(C [[
481- #include <arm_acle.h>
482- # if defined(__GNUC__)
483- # if!defined(__clang__)
484- # pragma GCC push_options
485- # pragma GCC target ("+nothing+crc")
486- # elif defined(__APPLE__)
487- # pragma clang attribute push(__attribute__((target("crc"))), apply_to=function)
488- # else
489- # pragma clang attribute push(__attribute__((target("+nothing+crc"))), apply_to=function)
490- # endif
491- # endif
492- int main(void)
493- {
494- __crc32d(0, 0);
495- return 0;
496- }
497- ]] HAVE_AARCH64_CRC32)
498- cmake_pop_check_state()
499- if (HAVE_AARCH64_CRC32)
500- message (CHECK_PASS "yes" )
501- else ()
502- message (CHECK_FAIL "no" )
503- endif ()
504-
505453if (HAVE_ALLOCA_H)
506454 # Most *.nix systems.
507455 check_symbol_exists(alloca "alloca.h" HAVE_ALLOCA)
0 commit comments