浏览代码

* fix SltiuAndi2Sltiu optimization

florian 5 月之前
父节点
当前提交
d91be468da
共有 1 个文件被更改,包括 1 次插入1 次删除
  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