-
Notifications
You must be signed in to change notification settings - Fork 265
In the Apple M3 environment, executing the log function returns 0 when I use O1,O2,O3 option #1116
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
I found is because i compile with the -ffast-math option, when i remove it, it is ok. |
Thanls for the report and the -ffast-math information. Can you confirm #1117 fixes the implementation even under -ffast-math ? |
I merged this modification into my 13.2.0 branch, but it still doesn't run correctly. |
strange. Did you merge the two commits from that branch and not only the top-of-tree? |
(I've been able to reproduce the issue on Apple M1 and the patch set fixes the issue) |
now i use master branch to rebuild in my Apple M3,but it still doesn't run correctly.this is my compile command:clang++ -ftree-vectorize -O2 -o input input.cc -ffast-math. |
This is my code. I found that using arithmetic operations or other trigonometric functions works fine, but using the log function specifically returns 0 when I use O2 option.
The default architecture is neon64, and supported_architectures returns neon64 and neon. I get the same result when switching to neon.
The text was updated successfully, but these errors were encountered: