Skip to content

Enable f16 for LoongArch #770

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Mar 5, 2025
Merged

Conversation

heiher
Copy link
Contributor

@heiher heiher commented Feb 26, 2025

r? @tgross35

Tracking issue for f16: rust-lang/rust#116909

@tgross35
Copy link
Contributor

Since loongarch doesn't have the system version to test against, could you add a line here so it uses the apfloat fallback

|| target.arch == "powerpc64le"
?

@heiher
Copy link
Contributor Author

heiher commented Feb 26, 2025

Since loongarch doesn't have the system version to test against, could you add a line here so it uses the apfloat fallback

|| target.arch == "powerpc64le"

?

Thanks for your suggestion.

@tgross35
Copy link
Contributor

tgross35 commented Mar 4, 2025

This should be good but I'm holding off since our compiler-builtins updates are a bit backed up.

@heiher heiher force-pushed the enable-f16-loong branch from 8f1dbb6 to 6da1daf Compare March 5, 2025 02:33
@tgross35
Copy link
Contributor

tgross35 commented Mar 5, 2025

I guess it is looking for those unmangled convert symbols to implement the other routines rather than only testing our __gnu_(h2f|f2h)_ieee. So you were right before, disabling the tests in testcrate/tests/conv.rs is probably the best thing to do until this makes it to a nightly rustc, then we can enable them again. Sorry about that.

@heiher
Copy link
Contributor Author

heiher commented Mar 5, 2025

I guess it is looking for those unmangled convert symbols to implement the other routines rather than only testing our __gnu_(h2f|f2h)_ieee. So you were right before, disabling the tests in testcrate/tests/conv.rs is probably the best thing to do until this makes it to a nightly rustc, then we can enable them again. Sorry about that.

Okay. I'll revert to the previous version, and I also sincerely appreciate your efforts in this.

@heiher heiher force-pushed the enable-f16-loong branch 2 times, most recently from bd5caab to 118bce2 Compare March 5, 2025 03:00
@tgross35
Copy link
Contributor

tgross35 commented Mar 5, 2025

Happy to help get the type working on more targets 👍 thanks for all the changes.

I have to hold off merging until rust-lang/rust#137634 goes through but LGTM.

heiher added 2 commits March 5, 2025 01:07
Skip the f16-related tests on LoongArch if there are no f16 symbols
in the system libraries.
@tgross35 tgross35 enabled auto-merge (rebase) March 5, 2025 06:07
@tgross35 tgross35 disabled auto-merge March 5, 2025 06:07
@tgross35 tgross35 enabled auto-merge (squash) March 5, 2025 06:08
@tgross35 tgross35 merged commit 4690673 into rust-lang:master Mar 5, 2025
26 checks passed
@github-actions github-actions bot mentioned this pull request Mar 5, 2025
@heiher heiher deleted the enable-f16-loong branch March 5, 2025 06:37
tgross35 added a commit to tgross35/rust that referenced this pull request Mar 5, 2025
This enables `f16` builtins for loongarch [1] and adds support for
Cygwin [2].

[1]: rust-lang/compiler-builtins#770
[2]: rust-lang/compiler-builtins#774
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 5, 2025
Update `compiler-builtins` to 0.1.151

This enables `f16` builtins for loongarch [1] and adds support for Cygwin [2].

[1]: rust-lang/compiler-builtins#770
[2]: rust-lang/compiler-builtins#774

try-job: dist-loongarch64-linux
try-job: dist-loongarch64-musl
jieyouxu added a commit to jieyouxu/rust that referenced this pull request Mar 5, 2025
Update `compiler-builtins` to 0.1.151

This enables `f16` builtins for loongarch [1] and adds support for Cygwin [2].

[1]: rust-lang/compiler-builtins#770
[2]: rust-lang/compiler-builtins#774

try-job: dist-loongarch64-linux
try-job: dist-loongarch64-musl
jieyouxu added a commit to jieyouxu/rust that referenced this pull request Mar 5, 2025
Update `compiler-builtins` to 0.1.151

This enables `f16` builtins for loongarch [1] and adds support for Cygwin [2].

[1]: rust-lang/compiler-builtins#770
[2]: rust-lang/compiler-builtins#774

try-job: dist-loongarch64-linux
try-job: dist-loongarch64-musl
Noratrieb added a commit to Noratrieb/rust that referenced this pull request Mar 6, 2025
Update `compiler-builtins` to 0.1.151

This enables `f16` builtins for loongarch [1] and adds support for Cygwin [2].

[1]: rust-lang/compiler-builtins#770
[2]: rust-lang/compiler-builtins#774

try-job: dist-loongarch64-linux
try-job: dist-loongarch64-musl
compiler-errors added a commit to compiler-errors/rust that referenced this pull request Mar 6, 2025
Update `compiler-builtins` to 0.1.151

This enables `f16` builtins for loongarch [1] and adds support for Cygwin [2].

[1]: rust-lang/compiler-builtins#770
[2]: rust-lang/compiler-builtins#774

try-job: dist-loongarch64-linux
try-job: dist-loongarch64-musl
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Mar 7, 2025
Rollup merge of rust-lang#138038 - tgross35:update-builtins, r=tgross35

Update `compiler-builtins` to 0.1.151

This enables `f16` builtins for loongarch [1] and adds support for Cygwin [2].

[1]: rust-lang/compiler-builtins#770
[2]: rust-lang/compiler-builtins#774

try-job: dist-loongarch64-linux
try-job: dist-loongarch64-musl
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 7, 2025
Enable `f16` for LoongArch

Blocked on rust-lang/compiler-builtins#770

r? `@tgross35`

Tracking issue for f16: rust-lang#116909

try-job: dist-loongarch64-linux
try-job: dist-loongarch64-musl
github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Mar 7, 2025
Update `compiler-builtins` to 0.1.151

This enables `f16` builtins for loongarch [1] and adds support for Cygwin [2].

[1]: rust-lang/compiler-builtins#770
[2]: rust-lang/compiler-builtins#774

try-job: dist-loongarch64-linux
try-job: dist-loongarch64-musl
jhpratt added a commit to jhpratt/rust that referenced this pull request Mar 7, 2025
Enable `f16` for LoongArch

Blocked on rust-lang/compiler-builtins#770

r? `@tgross35`

Tracking issue for f16: rust-lang#116909

try-job: dist-loongarch64-linux
try-job: dist-loongarch64-musl
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Mar 7, 2025
Enable `f16` for LoongArch

Blocked on rust-lang/compiler-builtins#770

r? ``@tgross35``

Tracking issue for f16: rust-lang#116909

try-job: dist-loongarch64-linux
try-job: dist-loongarch64-musl
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Mar 7, 2025
Enable `f16` for LoongArch

Blocked on rust-lang/compiler-builtins#770

r? ```@tgross35```

Tracking issue for f16: rust-lang#116909

try-job: dist-loongarch64-linux
try-job: dist-loongarch64-musl
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Mar 7, 2025
Rollup merge of rust-lang#137674 - heiher:enable-f16-loong, r=tgross35

Enable `f16` for LoongArch

Blocked on rust-lang/compiler-builtins#770

r? ```@tgross35```

Tracking issue for f16: rust-lang#116909

try-job: dist-loongarch64-linux
try-job: dist-loongarch64-musl
lnicola pushed a commit to lnicola/rust-analyzer that referenced this pull request Mar 10, 2025
Update `compiler-builtins` to 0.1.151

This enables `f16` builtins for loongarch [1] and adds support for Cygwin [2].

[1]: rust-lang/compiler-builtins#770
[2]: rust-lang/compiler-builtins#774

try-job: dist-loongarch64-linux
try-job: dist-loongarch64-musl
bjorn3 pushed a commit to rust-lang/rustc_codegen_cranelift that referenced this pull request Mar 12, 2025
This enables `f16` builtins for loongarch [1] and adds support for
Cygwin [2].

[1]: rust-lang/compiler-builtins#770
[2]: rust-lang/compiler-builtins#774
github-actions bot pushed a commit to model-checking/verify-rust-std that referenced this pull request Mar 14, 2025
This enables `f16` builtins for loongarch [1] and adds support for
Cygwin [2].

[1]: rust-lang/compiler-builtins#770
[2]: rust-lang/compiler-builtins#774
github-actions bot pushed a commit to model-checking/verify-rust-std that referenced this pull request Mar 14, 2025
Update `compiler-builtins` to 0.1.151

This enables `f16` builtins for loongarch [1] and adds support for Cygwin [2].

[1]: rust-lang/compiler-builtins#770
[2]: rust-lang/compiler-builtins#774

try-job: dist-loongarch64-linux
try-job: dist-loongarch64-musl
github-actions bot pushed a commit to model-checking/verify-rust-std that referenced this pull request Mar 14, 2025
Enable `f16` for LoongArch

Blocked on rust-lang/compiler-builtins#770

r? ```@tgross35```

Tracking issue for f16: rust-lang#116909

try-job: dist-loongarch64-linux
try-job: dist-loongarch64-musl
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants