Skip to content

Commit

Permalink
Fixed c_addi instruction in isa_support
Browse files Browse the repository at this point in the history
Signed-off-by: Ingrid Haahjem <[email protected]>
  • Loading branch information
silabs-inhaahje committed Jul 20, 2023
1 parent 5b10a1a commit c565495
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/support/isa_support.sv
Original file line number Diff line number Diff line change
Expand Up @@ -2141,6 +2141,7 @@
asm = build_asm(C_LUI, CI_TYPE, instr);

( (instr.compressed.opcode == C1)
&& (instr.compressed.format.ci.rd_rs1.gpr != X0)
&& (instr.compressed.format.ci.funct3 == FUNCT3_C_ADDI_NOP)) :
asm = build_asm(C_ADDI, CI_TYPE, instr);

Expand Down

0 comments on commit c565495

Please sign in to comment.