-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Floating point bug in range operation on Apple Silicon hardware #14140
Comments
I'll investigate this issue. |
The investigation is complete. This is probably an Apple bug. The following code:
compile:
exec:
If this continues, nothing will be output, so debug with gdb:
We can see that the calculation result |
However, I'm just trying to figure out if there's a workaround for this |
If that helps, I have the same issue with my raspberry 4. |
same problem occurred between 5.0 and 5.3.6 checking on 3v4l |
Thanks. hmm, then, is this an arm-specific phenomenon? It might be a good idea to push the test code to Circle CI arm. |
On a separate matter, I was investigating the behavior when using gcc and arm together. |
In M1 MacBook Air is reproduced.
In Raspberry Pi 4 (build in GCC), result is bellow:
However, In Raspberry Pi 4 (build in clang), result is reproduced:
|
The combination of intel and clang works fine. |
I reported it |
I was able to get an answer right away. This is a problem with clang's compilation flags, and if Therefore, if you are building it yourself, please pass |
I confirmed correct behavior in M1 MacBook Air.
|
No feedback was provided. The issue is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so. Thank you. |
@shivammathur Hi, do you plan to change this flag in yours brew packages? |
This issue was resolved by the following PR: |
Yes, with the next releases. |
Still having the problem, thanks GitHub actions. |
Description
The following code:
Resulted in this output:
But I expected this output instead:
I tested this on a few devices with my peers. Every x86 processor we tested worked as expected, but reliably got the erroneous result using different Apple M2 devices.
PHP Version
PHP 8.3.6
Operating System
Sonoma 14.4.1
The text was updated successfully, but these errors were encountered: