Skip to content

cranelift: use f16 fallbacks#158972

Closed
folkertdev wants to merge 2 commits into
rust-lang:mainfrom
folkertdev:cranelift-use-f16-fallbacks
Closed

cranelift: use f16 fallbacks#158972
folkertdev wants to merge 2 commits into
rust-lang:mainfrom
folkertdev:cranelift-use-f16-fallbacks

Conversation

@folkertdev

@folkertdev folkertdev commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

@rustbot rustbot added A-CI Area: Our Github Actions CI A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Jul 8, 2026
@folkertdev
folkertdev force-pushed the cranelift-use-f16-fallbacks branch from c24084d to afcbb76 Compare July 8, 2026 19:34
@folkertdev
folkertdev force-pushed the cranelift-use-f16-fallbacks branch from afcbb76 to 219619d Compare July 10, 2026 07:45
@folkertdev

Copy link
Copy Markdown
Contributor Author

@bjorn3 is it OK to merge this here or is it better to do it on the cg_clif repo?

@bjorn3

bjorn3 commented Jul 10, 2026

Copy link
Copy Markdown
Member

I would prefer in the cg_clif repo for better CI coverage.

sym::powif64 => ("__powidf2", 2, fx.tcx.types.f64, types::F64), // compiler-builtins
sym::powif128 => ("__powitf2", 2, fx.tcx.types.f128, types::F128), // compiler-builtins
sym::powf16 => ("powf16", 2, fx.tcx.types.f16, types::F16),

@bjorn3 bjorn3 Jul 10, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

nit

View changes since the review

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was deliberate, otherwise the "has a fallback via f32" is aligned with "compiler-builtins" from the preceding line, which looks really weird.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a newline between each family of intrinsics?

@folkertdev

Copy link
Copy Markdown
Contributor Author

We'll handle this in rust-lang/rustc_codegen_cranelift#1674

@folkertdev folkertdev closed this Jul 11, 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 Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-CI Area: Our Github Actions CI A-testsuite Area: The testsuite used to check the correctness of rustc T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. 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.

3 participants