+ first batch of instructions added for Addi0Op2Op

This commit is contained in:
florian 2024-10-02 23:12:05 +02:00
parent ce20ea8043
commit 42f15792ec

View File

@ -332,7 +332,7 @@ implementation
(taicpu(p).oper[2]^.typ=top_const) and
(taicpu(p).oper[2]^.val=0) and
GetNextInstructionUsingReg(p, hp1, taicpu(p).oper[0]^.reg) and
MatchInstruction(hp1, [A_SUB{$ifdef riscv64}{$endif}]) and
MatchInstruction(hp1, [A_SUB,A_ADD,A_SLL,A_SLT,A_AND,A_OR{$ifdef riscv64}{$endif}]) and
(taicpu(hp1).ops=3) and
(MatchOperand(taicpu(p).oper[0]^,taicpu(hp1).oper[2]^) or MatchOperand(taicpu(p).oper[0]^,taicpu(hp1).oper[1]^)) and
(not RegModifiedBetween(taicpu(p).oper[1]^.reg, p,hp1)) and