Skip to content

Conversation

@sommerlukas
Copy link
Contributor

Fix the VM dialect constant folders for integer to float64 type casts.

Incorrectly using a float(32) zero value for initialization leads to a mismatch in float semantics between initial and converted value.

This is based on the bug reported from fuzzing and fixes #22966.

Fix the VM dialect constant folders for integer to float64 type casts.

Incorrectly using a float(32) zero value for initialization leads to a mismatch in float semantics between initial and converted value.

Signed-off-by: Lukas Sommer <[email protected]>
Signed-off-by: Lukas Sommer <[email protected]>
@sommerlukas sommerlukas force-pushed the fuzzer-bug-vm-f64-cast branch from dafd3e7 to 49876a7 Compare December 30, 2025 19:00
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.

Assertion failure in FloatAttr::get during constant folding of vm.cast.ui64.f64

2 participants