-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add overrides for fma
and friends
#1154
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Clang 14 and later enable
-ffp-contract=on
by default, which which cause combinations of multiplications/additions to be optimized into thellvm.fmuladd.*
intrinsic, even with-O0
. Here is an example of a simple program that works when run withcrux-llvm
and Clang 13 and earlier, but fails with Clang 14+ because of this issue:We should add overrides for
llvm.fmuladd.*
, the related intrinsicllvm.fma.*
, and thefma
/fmaf
functions fromlibc
.The text was updated successfully, but these errors were encountered: