Browse Source

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

florian 3 years ago
parent
commit
a362c93f73
1 changed files with 1 additions and 1 deletions
  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