Skip to content

fix(riscv): accept c.lui rd=x0 hints - #326

Open
carlosqwqqwq wants to merge 1 commit into
HexRaysSA:masterfrom
carlosqwqqwq:fix-riscv-clui-hint
Open

fix(riscv): accept c.lui rd=x0 hints#326
carlosqwqqwq wants to merge 1 commit into
HexRaysSA:masterfrom
carlosqwqqwq:fix-riscv-clui-hint

Conversation

@carlosqwqqwq

Copy link
Copy Markdown
Contributor

Summary

Accept the c.lui rd=x0 HINT code point. decode_q1 now rejects only the nzimm==0 reserved encoding; rd=x0 with nzimm!=0 decodes as lui x0, imm (a no-op HINT) and executes normally. The JIT boundary test no longer lists C.LUI rd=x0 as an illegal compressed encoding.

Validation

  • New regression test c_lui_rd0_hint: HINT decodes as lui x0, imm; rd!=0 control decodes normally; nzimm==0 stays reserved.
  • cargo test --lib c_lui_rd0_hint passes on the master base above.

Closes #321

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.

The c.lui rd=x0 HINT code point is rejected as a reserved encoding

1 participant