Skip to content

Conversation

@tgross35
Copy link
Contributor

@tgross35 tgross35 commented Mar 4, 2025

LLVM doesn't seem to emit this intrinsic but it probably should, in some cases it lowers f16->f64 conversions as f16->f32->f64 with two libcalls. GCC provides this intrinsic so it is good to have anyway.

Additionally, add a test for f64->f16 which was missing.

@tgross35 tgross35 force-pushed the f16-extend-f64 branch 6 times, most recently from 08dc524 to ed5baaa Compare March 4, 2025 22:27
LLVM doesn't seem to emit this intrinsic but it probably should, in some
cases it lowers f16->f64 conversions as f16->f32->f64 with two libcalls.
GCC provides this intrinsic so it is good to have anyway.

Additionally, add a test for f64->f16 which was missing.

[1]: https://rust.godbolt.org/z/xezM9PEnz
@tgross35 tgross35 changed the title Add __extendhfdf2 Add __extendhfdf2 and add __truncdfhf2 test Mar 4, 2025
@tgross35 tgross35 merged commit 9ed21c4 into rust-lang:master Mar 4, 2025
26 checks passed
@tgross35 tgross35 deleted the f16-extend-f64 branch March 4, 2025 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant