Explorar o código

* Aarch64: operations affect always the full 64 bit register, so
TCpuAsmOptimizer.RegLoadedWithNewValue can use SuperRegistersEq

florian %!s(int64=3) %!d(string=hai) anos
pai
achega
a362c93f73
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/aarch64/aoptcpu.pas

+ 1 - 1
compiler/aarch64/aoptcpu.pas

@@ -114,7 +114,7 @@ Implementation
 
       case p.oper[0]^.typ of
         top_reg:
-          Result := (p.oper[0]^.reg = reg);
+          Result := SuperRegistersEqual(p.oper[0]^.reg,reg);
         top_ref:
           Result :=
             (taicpu(p).oper[0]^.ref^.addressmode in [AM_PREINDEXED,AM_POSTINDEXED]) and