-
Notifications
You must be signed in to change notification settings - Fork 232
Conversion from&to float<->integer (32&64 bits) #139
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
Conversation
You can restrict the range (return
Is that what compiler-rt implementation does? |
Thank you ! I excluded values out of integer's range and NaN.
Yes when SOFT-FP is used. |
I don't understand why the emulated hf returned an invalid value :
Everything passed on my repos, https://travis-ci.org/ithinuel/compiler-builtins/builds/198734216 |
So, my hypothesis is that since armhf doesn't use the e.g. fixsfsi intrinsic then it simply may not be correctly implemented in compiler-rt.
I think we should both not expose and not test, on armhf, the conversion intrinsics that are not used on armhf. For example: |
According to the Rust Reference there is no way to distinguish if the target is armhf and/or which kind of fpu is available (and which operation are provided by hardware). Do you know an annotation that could be used to apply this kind of filter ? |
You can create a "cfg" in the build script. Examples. Then you can use e.g.
You can cross compile |
☔ The latest upstream changes (presumably #142) made this pull request unmergeable. Please resolve the merge conflicts. |
Can other ARM aliases be added to this PR? I came across the need for |
ping @ithinuel, any update on this? |
@FenrirWolf Yes, I will add all necessary aliases for
It seems that compiler-rt is missing some functions to fully support thumbv6m devices :/ |
Yeah, see #75.
We can't properly test the thumb targets anyway as there no way to compile the |
Here is the continuation of PR #121.
The tests that pass are actually where the new functions are not tested.
And the tests that fails are on UB results.
This implementation always saturate to the closest min_value/max_value.