Skip to content

Commit

Permalink
process OP_BR after OP_FCOMPARE
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinlong-Wu committed Dec 27, 2023
1 parent 787db19 commit 173e839
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mono/mono/mini/mini-riscv.c
Original file line number Diff line number Diff line change
Expand Up @@ -2717,7 +2717,10 @@ mono_arch_lowering_pass (MonoCompile *cfg, MonoBasicBlock *bb)
next_ins->opcode = OP_RISCV_BNE;
next_ins->sreg1 = ins->dreg;
next_ins->sreg2 = RISCV_ZERO;
} else {
} else if (next_ins->opcode == OP_BR) {
NULLIFY_INS (ins);
}
else {
g_print ("Unhandaled op %s following after OP_FCOMPARE\n", mono_inst_name (next_ins->opcode));
NOT_IMPLEMENTED;
}
Expand Down

0 comments on commit 173e839

Please sign in to comment.