diff options
Diffstat (limited to 'riscv_new/compiler/riscv64/aoptcpu.pas')
-rw-r--r-- | riscv_new/compiler/riscv64/aoptcpu.pas | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/riscv_new/compiler/riscv64/aoptcpu.pas b/riscv_new/compiler/riscv64/aoptcpu.pas index 34ae3695ad..3eb1bd9bbe 100644 --- a/riscv_new/compiler/riscv64/aoptcpu.pas +++ b/riscv_new/compiler/riscv64/aoptcpu.pas @@ -112,6 +112,7 @@ implementation (hp1.typ=ait_instruction) and (taicpu(hp1).opcode=A_ADDI) and (taicpu(hp1).ops=3) and + (taicpu(p).oper[0]^.reg=taicpu(hp1).oper[1]^.reg) and (taicpu(p).oper[2]^.typ=top_const) and is_imm12(taicpu(p).oper[2]^.val+taicpu(hp1).oper[2]^.val) and (not RegModifiedBetween(taicpu(p).oper[1]^.reg, p,hp1)) and |