Browse Source

* fixed cgsize2subreg() for integer registers (we can use 32 and 64 bit
registers -> 64 bit values go into 64 bit registers and everything else into
32 bit ones)

git-svn-id: trunk@29849 -

Jonas Maebe 10 years ago
parent
commit
d23299af1e
1 changed files with 4 additions and 4 deletions
  1. 4 4
      compiler/aarch64/cpubase.pas

+ 4 - 4
compiler/aarch64/cpubase.pas

@@ -346,11 +346,11 @@ unit cpubase;
             begin
               case s of
                 { there's only Wn and Xn }
-                OS_32,
-                OS_S32:
-                  cgsize2subreg:=R_SUBD;
-                else
+                OS_64,
+                OS_S64:
                   cgsize2subreg:=R_SUBWHOLE;
+                else
+                  cgsize2subreg:=R_SUBD;
                 end;
             end;
           R_MMREGISTER: