Skip to content

Support const left shifts#310

Open
guosran wants to merge 2 commits into
tancheng:masterfrom
guosran:fix/shifter-const-rtl
Open

Support const left shifts#310
guosran wants to merge 2 commits into
tancheng:masterfrom
guosran:fix/shifter-const-rtl

Conversation

@guosran

@guosran guosran commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

Addresses #292 with minimized const-shift support. This PR updates ShifterRTL.py plus shared opcode definitions in lib/opt_type.py.

Changes

  • Add OPT_LLS_CONST handling using the const queue shift amount.
  • Add the required shared const opcode entry.

Validation

Part of the master-based small conv passing set.

@guosran guosran force-pushed the fix/shifter-const-rtl branch from ce63353 to edbc506 Compare June 25, 2026 19:46
@guosran guosran marked this pull request as draft June 25, 2026 20:04
@guosran guosran marked this pull request as ready for review June 26, 2026 00:41
@guosran

guosran commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator Author

Const shift avoids needing a second dynamic input for fixed shifts.

input payload = 3
const shift = 2
operation = << const

Expected:
output payload = 12

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.

1 participant