Repository navigation
Conversation
Read the full 64-bit payload of tagged Shl operands. Match interpreter error order for the RHS tag, shift range, and LHS tag, restoring the pre-instruction state at the guard exit. Keep the specialized Ceq comparisons and use Value equality for tagged/scalar pairs, boxing the scalar without changing its tag. Differently typed scalar pairs are unequal. Preserve exact integers, signed-zero equality, and NaN inequality without changing the opcode or helper ABI. Cover full-width shifts, validation order, and both operand orders for tagged/scalar and mixed-scalar equality. Assert native SSA completion without an interpreter boundary on valid inputs.
fffonion
force-pushed
the
aot-tagged-shl-ceq
branch
from
December 2, 2026 23:21
4d60e8a to
04205a6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds two AOT SSA representation arms missing on the pinned revision:
Shl: accepts a tagged integer on either side, takes the full 64-bit payload, and shifts. Shift counts are checked withUnsignedLessThanOrEqual 63(rejects-1and>= 64), with the same check order asbridge.rsOP_SHL(rhs to int, range, lhs to int). Illegal inputs deopt through the existing materialize-and-trace-exit path, resuming at theshlbytecode with operands already on stack, so operands are evaluated once.Ceq: addsTagged × F64and its reverse by boxing the scalar with its original tag and calling the existingTaggedCmpEqhelper, preservingValue::eqsemantics (Int != Float,+0.0 == -0.0, NaN != NaN).No opcode, helper ABI, or VMBC format changes.
Tests:
cargo test --test aot_tagged_number_tests21 passed;cargo test --lib vm::aot40 passed.