Skip to content

Conversation

@m4rs-mt
Copy link
Owner

@m4rs-mt m4rs-mt commented Jul 12, 2025

This PR fixes #1309 and supersedes #1310.

It introduces a new way to track type-dependent arguments in ILInstruction instances. During code generation, the current top-of-the-stack element, as well as the next instruction, can be matched against dependent type information and appropriate instructions on the IR level will be selected.

In case of conv.r we test the next operation and select type information accordingly:

float = conv.r.un -> conv.r4
double = conv.r.un -> conv.r8

Please note that this fix will have to be merged before #1355.

@m4rs-mt m4rs-mt added the bug label Jul 12, 2025
@m4rs-mt m4rs-mt added this to the v1.5.4 milestone Jul 12, 2025
@m4rs-mt m4rs-mt marked this pull request as draft July 12, 2025 17:45
@m4rs-mt m4rs-mt force-pushed the fp_convert_15x branch 2 times, most recently from 74362f0 to da9c78d Compare July 12, 2025 19:45
@m4rs-mt m4rs-mt marked this pull request as ready for review July 12, 2025 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants