Browse Source

* similar change as in r33393 but now for a_load_reg_ref_unaligned(), although
it's unlikely it would ever cause a problem there

git-svn-id: trunk@33594 -

Jonas Maebe 9 years ago
parent
commit
1feb062f7d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compiler/aarch64/cgcpu.pas

+ 2 - 1
compiler/aarch64/cgcpu.pas

@@ -1116,8 +1116,9 @@ implementation
         if fromsize in [OS_64,OS_S64] then
           begin
             { split into two 32 bit stores }
-            hreg1:=makeregsize(register,OS_32);
+            hreg1:=getintregister(list,OS_32);
             hreg2:=getintregister(list,OS_32);
+            a_load_reg_reg(list,OS_32,OS_32,makeregsize(register,OS_32),hreg1);
             a_op_const_reg_reg(list,OP_SHR,OS_64,32,register,makeregsize(hreg2,OS_64));
             if target_info.endian=endian_big then
               begin