-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Fix incorrect result of complex
log
/log10
/pow
on ARM64
#2870
Fix incorrect result of complex
log
/log10
/pow
on ARM64
#2870
Conversation
complex
log
on ARM64complex
log
/log10
/pow
on ARM64
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without changes:
> python out\arm64\tests\utils\stl-lit\stl-lit.py .\tests\std\tests\GH_000935_complex_numerical_accuracy
Testing Time: 72.23s
Skipped : 288
Unsupported: 216
Failed : 72
With change:
Testing Time: 85.56s
Skipped : 288
Unsupported: 216
Passed : 72
Thanks! I've pushed minor changes after validating them on x64 (URL update, preprocessor simplification, extra test coverage). I'm also looking into testing this on an ARM64 VM - I've requested access which should be granted tomorrow. |
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. (I haven't yet gotten ARM64 VM access, but as the existing behavior is already incorrect for ARM64, I'd rather merge this change before the window for 17.4 Preview 2 closes.) |
I have verified that this works on ARM64:
|
@StephanTLavavej did you not see the test I did 😝 ? |
@strega-nil-ms I totally failed reading comprehension 😹 - didn't see |
Thank you so much for investigating and fixing this runtime correctness bug reported by users! 🐞 ✅ 😻 |
…soft#2870) Co-authored-by: Stephan T. Lavavej <[email protected]>
…soft#2870) Co-authored-by: Stephan T. Lavavej <[email protected]>
vfma_f64
ARM64 intrinsic, usingstd::fma
instead. This also improves codegen (https://godbolt.org/z/7rd4rc3nY).std::fma
for clang on ARM64.Fixes #2857. Fixes DevCom-10088405 and internal VSO-1567425 / AB#1567425 .
I'd appreciate help to run the tests on ARM64 and ARM64EC (especially GH_000935_complex_numerical_accuracy), as I don't have access to an ARM64 Windows machine now.