Harden vector rmask handling in assembler to prevent None << ... CI crash#43
Merged
Conversation
Agent-Logs-Url: https://github.com/AICrossSim/PLENA_Compiler/sessions/99e4dcc6-281d-408c-b1ff-f0a4b8407743 Co-authored-by: gaoziqian123 <184267376+gaoziqian123@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix CI failure in PR #42 for PLENA Compiler
Harden vector May 17, 2026
rmask handling in assembler to prevent None << ... CI crash
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.
CI was failing while assembling generated code because vector instructions reached
_convert_to_binary()withrmask=None, causingTypeErrorat(rmask << ...). This PR makesrmaskhandling explicit and deterministic for masked vector opcodes.Assembler encoding guard (
assembler/assembly_to_binary.py)rmask.rmaskis missing, encoder now normalizes it to0instead of shiftingNone.Parser consistency for 3-operand vector forms (
assembler/parser.py)V_EXP_V,V_RECI_V,V_RED_SUM,V_RED_MAX), keep parsed mask aligned intorstride/rmask.V_ADD_VV,V_ADD_VF,V_MUL_VV,V_SUB_VV,V_MUL_VF), assign defaultrmask=0in 3-operand form.Focused regression coverage (
assembler/tests/test_vector_rmask_handling.py)0;rmask=0.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
download-r2.pytorch.org/usr/bin/pip pip install torch --index-url REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
This pull request was created from Copilot chat.