-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Enable f16
tests on x86 and x86-64
#128349
Conversation
@bors try |
Enable `f16` on x86 and x86-64 Since the `compiler_builtins` update [1], ABI bugs on x86 should be resolved. Enable tests for f16 on these platforms now. [1]: rust-lang#125016 try-job: i686-gnu try-job: dist-i586-gnu-i586-i686-musl
These changes are pretty straightforward, so may as well request a review now as long as the CI turns green. r? libs |
This comment was marked as resolved.
This comment was marked as resolved.
r? @Noratrieb Seems like you missed triagebot.toml 😆 |
|
☀️ Try build successful - checks-actions |
@@ -267,7 +267,7 @@ impl f16 { | |||
/// | |||
/// ``` | |||
/// #![feature(f16)] | |||
/// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885 |
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.
any reason to not enable it on AArch64 too still?
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.
No strong reason, just a slightly more straightforward cfg
(gets copied around a lot) and to be consistent with the rest of the file and f128
. The core
doctests are more or less just for smoke, since std
has the better tests and all the platform config logic. (Unfortunately there doesn't seem to be an easy way to share this config with core
).
BUT this made me double check the other gates in this file, and I realize I forgot to restrict to only linux. Updated that.
☔ The latest upstream changes (presumably #128435) made this pull request unmergeable. Please resolve the merge conflicts. |
Rebased after #128388. This won't include anything new since symbols still aren't available. |
Psst @Noratrieb can I get your okay here (I would like this for testing), or do you feel strongly about #128349 (comment)? |
Given that the doc tests are just smoke tests, this seems fine to me. Arguably the aarch64 cfg is simpler as it doesn't require Linux, but it doesn't really matter. Sorry for blocking the build script change on the doctests, that build script change is clearly important^^. |
That's a good point, these could almost not be linux-only except for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115054. I think I just need to figure out a better way to reuse the working platforms logic into both core and std since it's useful elsewhere. Anyway no worries, thanks for taking a look! |
Enable `f16` on x86 and x86-64 Since the `compiler_builtins` update [1], ABI bugs on x86 should be resolved. Enable tests for f16 on these platforms now. [1]: rust-lang#125016 try-job: i686-gnu try-job: dist-i586-gnu-i586-i686-musl
Enable `f16` on x86 and x86-64 Since the `compiler_builtins` update [1], ABI bugs on x86 should be resolved. Enable tests for f16 on these platforms now. [1]: rust-lang#125016 try-job: i686-gnu try-job: dist-i586-gnu-i586-i686-musl
💔 Test failed - checks-actions |
Enable `f16` tests on x86 and x86-64 Since the `compiler_builtins` update [1], ABI bugs on x86 should be resolved. Enable tests for f16 on these platforms now. `f16` math functions (`reliable_f16_math`) are still excluded because there is an LLVM crash for powi [2]. [1]: rust-lang#125016 [2]: llvm/llvm-project#105747 try-job: dist-i586-gnu-i586-i686-musl try-job: x86_64-apple-1
The job Click to see the possible cause of the failure (guessed by this bot)
|
💔 Test failed - checks-actions |
🪙 <- your prize |
You're kidding. Anybody else a bit tired of that issue? 😆 |
Chris Denton is investigating it, see cargo zulip. |
Seen :) #127883 (comment) |
☀️ Test successful - checks-actions |
congrats!!!! |
confetti sounds |
Finished benchmarking commit (f167efa): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (primary 5.9%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResults (secondary -3.1%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 750.628s -> 750.904s (0.04%) |
Sixth time’s the charm! |
Since the
compiler_builtins
update 1, ABI bugs on x86 should be resolved. Enable tests for f16 on these platforms now.f16
math functions (reliable_f16_math
) are still excluded because there is an LLVM crash for powi 2.try-job: dist-i586-gnu-i586-i686-musl
try-job: x86_64-apple-1