https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63442
--- Comment #2 from Jiong Wang <jiwang at gcc dot gnu.org> --- Have done a quick investigation, it's caused by the implementation of TARGET_LIBGCC_CMP_RETURN_MODE aarch64_libgcc_cmp_return_mode AArch64 define the return mode to be SImode which seems broken gcc genric code when expand builtin lib call