avanhatt opened PR #6078 from iconst-imm12 to main:
Fixes https://github.com/bytecodealliance/wasmtime/issues/5903
This fixes
imm12_from_negated_valueto correctly sign-extend narrow values before negating them asi64values, allowing these rules to work for non-zero negativei32andi16.As suggested by @jameysharp in that issue, switch
imm12_from_negated_valueto be a partial term with a corresponding rule.Also updated + added to the relevant filetest.
avanhatt updated PR #6078 from iconst-imm12 to main.
cfallin submitted PR review.
cfallin merged PR #6078.
Last updated: Dec 06 2025 at 06:05 UTC