Skip to content

[compiler-rt] Add support for big endian for Arm's __negdf2vfp #127096

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion compiler-rt/lib/builtins/arm/negdf2vfp.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ DEFINE_COMPILERRT_FUNCTION(__negdf2vfp)
#if defined(COMPILER_RT_ARMHF_TARGET)
vneg.f64 d0, d0
#else
eor r1, r1, #-2147483648 // flip sign bit on double in r0/r1 pair
#if _YUGA_BIG_ENDIAN
eor r0, r0, #0x80000000 // flip sign bit on double in r0/r1 pair
#else
eor r1, r1, #0x80000000 // flip sign bit on double in r0/r1 pair
#endif
#endif
bx lr
END_COMPILERRT_FUNCTION(__negdf2vfp)
Expand Down