-
Notifications
You must be signed in to change notification settings - Fork 13.3k
x86_64 simd fmadd (and other) bug (release only) #56950
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
Comments
might be related to #50154 |
Problem was discovered on a skylake mac, if it helps. |
Perhaps not discovered sooner because the function isn't being used much. I found it in two Github repositories: |
Problem is also present on my i7-4960HQ Mac. |
Problem also occurs with simple multiplication. |
Yeah, it doesn't look like the problem lies with the functions themselves, like this simple 2.0 * 1.0 multiplication shows. So it could indeed be an instance of the linked LLVM by-ref args promotion issue ? |
What is the expected behavior here? From what I can tell, the given code isn't correct because you aren't using I think you'll want to have a careful review of https://doc.rust-lang.org/std/arch/index.html#overview and https://doc.rust-lang.org/std/arch/index.html#dynamic-cpu-feature-detection |
@BurntSushi why avx2? According to the doc it only requires "avx" |
@hellow554 I didn't check the precise requirements of each individual vendor intrinsic, and I don't have them memorized. :-) Feel free to |
|
all right... going back to hiding, thanks folks :) |
This bit of code falls in the assert in Release, while working in Debug.
Both stable and nightly.
https://play.rust-lang.org/?version=stable&mode=release&edition=2018&gist=6f280db2aaf8241e46a080f4189e0328
The text was updated successfully, but these errors were encountered: