Browse Source

* on aarch64-darwin, the unused part of function results is not cleared

(cherry picked from commit a517ada5399a06eee2032cf5b43409437c9039bc)
florian 1 year ago
parent
commit
75a6fbb813
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/aarch64/cpupara.pas

+ 1 - 1
compiler/aarch64/cpupara.pas

@@ -382,7 +382,7 @@ unit cpupara;
 
 
            This is not required for iOS, where the result is zero/sign extended.
            This is not required for iOS, where the result is zero/sign extended.
          }
          }
-         if (target_info.abi<>abi_aarch64_darwin) and
+         if (target_info.system<>system_aarch64_ios) and
             (side=callerside) and (result.location^.loc = LOC_REGISTER) and
             (side=callerside) and (result.location^.loc = LOC_REGISTER) and
             (result.def.size<8) and is_ordinal(result.def) then
             (result.def.size<8) and is_ordinal(result.def) then
            begin
            begin