Skip to content

Commit

Permalink
lowering _IMM to _REG
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinlong-Wu committed Dec 21, 2023
1 parent e8dbc86 commit f7637f6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/mono/mono/mini/mini-riscv.c
Original file line number Diff line number Diff line change
Expand Up @@ -2340,19 +2340,10 @@ mono_arch_lowering_pass (MonoCompile *cfg, MonoBasicBlock *bb)
case OP_LOR:
case OP_ISHL:
case OP_LSHL:
case OP_SHL_IMM:
case OP_ISHL_IMM:
case OP_LSHL_IMM:
case OP_ISHR:
case OP_ISHR_UN:
case OP_SHR_IMM:
case OP_ISHR_IMM:
case OP_SHR_UN_IMM:
case OP_ISHR_UN_IMM:
case OP_LSHR:
case OP_LSHR_UN:
case OP_LSHR_IMM:
case OP_LSHR_UN_IMM:
case OP_LOCALLOC:

/* skip dummy IL */
Expand Down Expand Up @@ -3234,7 +3225,16 @@ mono_arch_lowering_pass (MonoCompile *cfg, MonoBasicBlock *bb)
case OP_XOR_IMM:
case OP_IXOR_IMM:
case OP_LXOR_IMM:
if (!RISCV_VALID_I_IMM (ins->inst_imm))
case OP_SHL_IMM:
case OP_ISHL_IMM:
case OP_LSHL_IMM:
case OP_LSHR_IMM:
case OP_LSHR_UN_IMM:
case OP_SHR_IMM:
case OP_ISHR_IMM:
case OP_SHR_UN_IMM:
case OP_ISHR_UN_IMM:
if (!RISCV_VALID_LS_AMOUNT (ins->inst_imm))
mono_decompose_op_imm (cfg, bb, ins);
break;
case OP_INOT:
Expand Down

0 comments on commit f7637f6

Please sign in to comment.