-
Notifications
You must be signed in to change notification settings - Fork 14
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
Test for f128
#16
Comments
Oh rad, thank you for letting me know about these! Apologies for the radio silence, I just finished rewriting all of abi-cafe to make adding new stuff way easier >.>; |
That is awesome! We have both f16 and f128 available unstably which could be checked against Any chance you are planning to upstream this in to Rust's CI somehow? I know there has been a lot of interest, just nobody has figured out how to do the work. |
Notes on adding support for these types: First off, the type system already contains them, everything just refuses to implement them. Adding to rustThere are two parts to support: teaching the rust backend to generate the values, and teaching it to detect that the test uses f128/f16, and emitting a feature gate/nightly check, similar to vectorcall. Teaching to use the values/typesabi-cafe/src/abis/rust/declare.rs Lines 79 to 92 in 6ba6865
abi-cafe/src/abis/rust/init.rs Lines 34 to 49 in 6ba6865
Detecting the featureKinda spaghetti for vectorcall here. Detecting f16/f128 usage is also a bit harder. abi-cafe/src/abis/rust/write.rs Lines 18 to 20 in 6ba6865
abi-cafe/src/abis/rust/declare.rs Lines 451 to 456 in 6ba6865
You could maybe just do a prepass on the definitions list to sniff for those types? abi-cafe/src/abis/rust/declare.rs Lines 30 to 40 in 6ba6865
Adding to CEssentially the exact same thing as Rust, but less "detecting nightly and setting feature-gates" and more "detecting C toolchain, emitting toolchain-specific code". See for example where convention attributes get processed: abi-cafe/src/abis/c/declare.rs Lines 481 to 492 in 6ba6865
|
Is a test for
f128
possible? To check GCC__float128
against LLVM'sfp128
The text was updated successfully, but these errors were encountered: