Skip to content

Clean up or resolve cfg-related instances of FIXME(f16_f128)#151527

Merged
rust-bors[bot] merged 4 commits intorust-lang:mainfrom
tgross35:f16-fixme-cleanup
Jan 23, 2026
Merged

Clean up or resolve cfg-related instances of FIXME(f16_f128)#151527
rust-bors[bot] merged 4 commits intorust-lang:mainfrom
tgross35:f16-fixme-cleanup

Conversation

@tgross35
Copy link
Contributor

@tgross35 tgross35 commented Jan 23, 2026

  • Replace target-specific config that has a FIXME with cfg(target_has_reliable_f*)
  • Take care of trivial intrinsic-related FIXMEs
  • Split FIXME(f16_f128) into FIXME(f16), FIXME(f128), or FIXME(f16,f128) to more clearly identify what they block

The individual commit messages have more details.

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Jan 23, 2026
@tgross35 tgross35 changed the title F16 fixme cleanup library: Resolve cfg-releated instances of FIXME(f16_f128) Jan 23, 2026
@tgross35 tgross35 force-pushed the f16-fixme-cleanup branch 2 times, most recently from 749e883 to 80ada96 Compare January 23, 2026 05:03
@rustbot rustbot added the A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. label Jan 23, 2026
@tgross35 tgross35 changed the title library: Resolve cfg-releated instances of FIXME(f16_f128) Clean up or resolve cfg-related instances of FIXME(f16_f128) Jan 23, 2026
@tgross35 tgross35 added the F-f16_and_f128 `#![feature(f16)]`, `#![feature(f128)]` label Jan 23, 2026
There are a number of instances of `FIXME(f16_f128)` related to target
configuration; either these could use `target_has_reliable_f128`, or the
FIXME is describing such a cfg and is thus redundant (since any
`cfg(target_has_reliable_f*)` needs to be removed before stabilization
anyway).

Switch to using `target_has_reliable_*` where applicable and remove the
redundant FIXMEs.
This FIXME was introduced in 6e2d934 ("Add more `f16` and `f128`
library functions and constants") but I can't actually find my
reasoning. As far as I can tell, LLVM has been lowering `fabs.f128` as
bitwise operations for a while across all targets so there shouldn't be
a problem here.

Thus, apply what is suggested in the FIXME.
…6,f128`

Make it easier to identify which FIXMEs are blocking stabilization of
which type.
@tgross35 tgross35 marked this pull request as ready for review January 23, 2026 06:23
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 23, 2026
@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jan 23, 2026
@rustbot
Copy link
Collaborator

rustbot commented Jan 23, 2026

r? @joboet

rustbot has assigned @joboet.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@tgross35
Copy link
Contributor Author

r? @folkertdev

@rustbot rustbot assigned folkertdev and unassigned joboet Jan 23, 2026
@folkertdev
Copy link
Contributor

Nice, looks good.

@bors r+

@rust-bors
Copy link
Contributor

rust-bors bot commented Jan 23, 2026

📌 Commit 490b307 has been approved by folkertdev

It is now in the queue for this repository.

@rust-bors rust-bors bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 23, 2026
rust-bors bot pushed a commit that referenced this pull request Jan 23, 2026
…uwer

Rollup of 5 pull requests

Successful merges:

 - #149639 (inline constant localized typeck constraint computation)
 - #150780 (Add -Z large-data-threshold)
 - #151520 (Rename `HandleCycleError` to `CycleErrorHandling`)
 - #151525 (update enzyme, includes an extra patch to fix MacOS builds in CI)
 - #151527 (Clean up or resolve cfg-related instances of `FIXME(f16_f128)`)

r? @ghost
@rust-bors rust-bors bot merged commit 48b9a6c into rust-lang:main Jan 23, 2026
11 checks passed
rust-timer added a commit that referenced this pull request Jan 23, 2026
Rollup merge of #151527 - tgross35:f16-fixme-cleanup, r=folkertdev

Clean up or resolve cfg-related instances of `FIXME(f16_f128)`

* Replace target-specific config that has a `FIXME` with `cfg(target_has_reliable_f*)`
* Take care of trivial intrinsic-related FIXMEs
* Split `FIXME(f16_f128)` into `FIXME(f16)`, `FIXME(f128)`, or `FIXME(f16,f128)` to more clearly identify what they block

The individual commit messages have more details.
@rustbot rustbot added this to the 1.95.0 milestone Jan 23, 2026
@tgross35 tgross35 deleted the f16-fixme-cleanup branch January 23, 2026 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. F-f16_and_f128 `#![feature(f16)]`, `#![feature(f128)]` S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants