-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
LLVM 14 Regression: Bad fptoui
result when targeting x86_64-windows-gnu
#56461
Comments
This seems to produce the same assembly with llc on trunk and llvm 13. https://godbolt.org/z/qY1je758n are you seeing something different? |
It does produce different assembly with -O0. Is that what I'm meant to use? |
The issue I'm seeing on -O0 is with the calling convention for the |
Oh yes. Sorry for forgetting to add that detail - This is at |
I was unaware of the calling convention change - Thanks for the information. It's possible this is just an ABI mismatch with the |
It looks like this is indeed just an ABI mismatch - I've confirmed using compiler-rt compiled using clang on Windows fixes the problem. Apologies for the noise, and thank you for your help. |
Bad float to int conversion when targeting
x86_64-windows-gnu
:This exits with 0 in LLVM 13.0.1, but returns 1 with LLVM 14.0.5 and trunk.
(Note that
152314000000000000407048814592
is exactly representable in bothf64
andu128
)The text was updated successfully, but these errors were encountered: