Skip to content

Commit 5a5fa8e

Browse files
committed
Merge branch 'PHP-8.5'
2 parents cb5f569 + d4b372f commit 5a5fa8e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cmake/Zend/cmake/CheckPreserveNone.cmake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ if(NOT DEFINED PHP_ZEND_HAVE_PRESERVE_NONE)
5555
"movq %2, %%r13\n"
5656
"xorq %3, %%r13\n"
5757
"xorq %%rax, %%rax\n"
58+
#if defined(__APPLE__)
59+
"call _fun\n"
60+
#else
5861
"call fun\n"
62+
#endif
5963
: "=a" (ret)
6064
: "r" (const1), "r" (const2), "r" (key)
6165
: "r12", "r13"
@@ -66,7 +70,11 @@ if(NOT DEFINED PHP_ZEND_HAVE_PRESERVE_NONE)
6670
"eor x20, %1, %3\n"
6771
"eor x21, %2, %3\n"
6872
"eor x0, x0, x0\n"
73+
#if defined(__APPLE__)
74+
"bl _fun\n"
75+
#else
6976
"bl fun\n"
77+
#endif
7078
"mov %0, x0\n"
7179
"=r" (ret)
7280
"r" (const1), "r" (const2), "r" (key)

0 commit comments

Comments
 (0)