mirror of
https://github.com/jhaizhou-ops/d2r-mobile
synced 2026-11-26 13:57:52 +08:00
Neither test phone (Redmi K50 Ultra, OnePlus 13) nor any Apple chip lacks LSE atomics, RCpc or dot product, so a change that brings them back would only show up as a SIGILL on Snapdragon 680-class phones (#293). tools/check_armv80.py runs the NDK's llvm-objdump on libdm.so after the link (CMake POST_BUILD) and fails the build on any LSE atomic (cas, casp, swp, ld<op>, st<op>), RCpc load/store (ldapr, ldapur, stlur) or dot product (sdot, udot), listing the function and instruction. Allowed: compiler-rt's __aarch64_* outline atomics and libdeflate's adler32_arm_neon_dotprod, which are picked at run time from HWCAP. It takes about 2 s. Checked: the v2.3.1 release libdm.so fails (524: nvn_prof_entry and the 523 thunks); this branch passes; disabling the asm_elf.py rewrite makes the link step fail, and restoring it passes again. The APK is byte-identical to the one tested on the Redmi (e7ee7936). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>