florian 13 часов назад
Родитель
Сommit
a45253c7ac
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      compiler/riscv/aoptcpurv.pas

+ 1 - 0
compiler/riscv/aoptcpurv.pas

@@ -748,6 +748,7 @@ implementation
           else if MatchInstruction(hp1,A_SB) and
             (taicpu(hp1).ops=2) and
             MatchOperand(taicpu(p).oper[0]^,taicpu(hp1).oper[0]^) and
+            (taicpu(p).oper[2]^.val and $ff=$ff) and
             (not RegModifiedBetween(taicpu(p).oper[1]^.reg, p,hp1)) and
             RegEndOfLife(taicpu(p).oper[0]^.reg, taicpu(hp1)) then
             begin