-
Notifications
You must be signed in to change notification settings - Fork 211
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
Add f128
float to integer conversion functions
#613
Conversation
642d082
to
568377b
Compare
f16
and f128
conversion functionsf128
float to integer conversion functions
I think this one should be all set now |
testcrate/build.rs
Outdated
} | ||
|
||
if target.starts_with("i586") { | ||
// i586 seems to not have ``__fixunstfti`, but does have everything else |
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.
It's strange that this is only missing for i586 but not i686 since they should both be linking to the same libgcc. Are the docker images using different package versions for these 2 targets?
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.
It just didn't show up because i686 was already disabled a few lines up due to an ABI issue https://github.com/rust-lang/compiler-builtins/pull/613/files#diff-05ae0211bd995d6870067db299c32944cf2b743226442889bb07d48232afc2c5R22-R24. Interesting, I guess that specific issue must not be a problem on i586.
I explicitly listed i586 here to be clear.
Deduplicate code used for float to integer conversions in order to make adding `f128` conversion functions easier.
568377b
to
4d9b827
Compare
`as` casts are only allowed for primitives, doing the same operations with `rustc_apfloat` requires using functions. Add a way to specify these separately.
Add the following: - `__fixtfsi` - `__fixtfdi` - `__fixtfti` - `__fixunstfsi` - `__fixunstfdi` - `__fixunstfti`
4d9b827
to
4edcd5a
Compare
Add the following:
__fixtfsi
__fixtfdi
__fixtfti
__fixunstfsi
__fixunstfdi
__fixunstfti