Skip to content

x64: Implement fallback for fcvt_from_sint.f64x2#8099

Merged
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:x64-fcvt-from-sint-f64x2
Mar 12, 2024
Merged

x64: Implement fallback for fcvt_from_sint.f64x2#8099
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:x64-fcvt-from-sint-f64x2

Conversation

@alexcrichton
Copy link
Member

This instruction was previously unimplemented in Cranelift as pointed out in #8084. While a fallback for fcvt_from_uint was implemented in #7919 I forgot to do the same for the signed version. This commit adds a fallback that decomposes the input into two scalars and converts each individually, then reassembling the result.

This instruction was previously unimplemented in Cranelift as pointed
out in bytecodealliance#8084. While a fallback for `fcvt_from_uint` was implemented
in bytecodealliance#7919 I forgot to do the same for the signed version. This commit
adds a fallback that decomposes the input into two scalars and converts
each individually, then reassembling the result.
@alexcrichton alexcrichton requested a review from a team as a code owner March 12, 2024 15:49
@alexcrichton alexcrichton requested review from elliottt and removed request for a team March 12, 2024 15:49
Copy link
Member

@elliottt elliottt left a comment

Choose a reason for hiding this comment

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

Looks good!

@alexcrichton alexcrichton added this pull request to the merge queue Mar 12, 2024
@github-actions github-actions bot added cranelift Issues related to the Cranelift code generator cranelift:area:x64 Issues related to x64 codegen labels Mar 12, 2024
Merged via the queue into bytecodealliance:main with commit d27fc3d Mar 12, 2024
@alexcrichton alexcrichton deleted the x64-fcvt-from-sint-f64x2 branch March 12, 2024 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cranelift:area:x64 Issues related to x64 codegen cranelift Issues related to the Cranelift code generator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants