Forráskód Böngészése

* fix SltiuAndi2Sltiu optimization

florian 4 hónapja
szülő
commit
d91be468da
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      compiler/riscv/aoptcpurv.pas

+ 1 - 1
compiler/riscv/aoptcpurv.pas

@@ -749,7 +749,7 @@ implementation
              end
            else if MatchInstruction(hp1,A_ANDI) and
              (taicpu(hp1).ops=3) and
-             (taicpu(p).oper[2]^.val>0) and
+             (taicpu(hp1).oper[2]^.val>0) and
              MatchOperand(taicpu(hp1).oper[1]^,taicpu(p).oper[0]^) and
              MatchOperand(taicpu(hp1).oper[0]^,taicpu(hp1).oper[1]^) then
              begin